Bob Morley wrote:
Adrian Crum-2 wrote:
I don't know if this is the best approach, but it is the one I use.
Instead of extending the entity, I create a separate entity that contains
the additional fields. Then I connect the original entity and the new
entity together with a view entity. The CRUD services for the view entity
call the original entity's CRUD services first, and then call the new
entity's CRUD services. In this way I keep all custom entities and code
outside of the main project.


While we typically extend the entities which works for us (we leverage the
existing services implementations but usually do not leverage the existing
presentment layer).

Your approach is probably best. I think the approach I use was developed before the entity extension capability was introduced, and now I do it that way out of habit.

Reply via email to