Doubt about object / class TMappedEntity

Doubt about object / class TMappedEntity

Postby rafaelgalle11 » Fri 08 Sep 2017 21:07


I would like to know if it is possible to populate an object without it being inherited from TMappedEntity

Ex. TTeste = class

When taking the TMappedEntity I miss the possibility of doing the Register procedure; override;

And it is also not possible to use getentities to populate the object list because this function requires a class of type TMappedEntity.
FContext.GetEntities <TContabilidadeEntityE>;
Posts: 2
Joined: Wed 06 Sep 2017 20:36

Re: Doubt about object / class TMappedEntity

Postby MaximG » Tue 12 Sep 2017 07:54

You can work with objects without using inheritance from the TMappedEntity class.
This model in EntityDAC is called the Attribute-mapped Objects Model. The principles of working with such model are covered in our documentation :
To work with objects, which are not descendants of TEntity, there is the TObjectContext class in EntityDAC :
The samples of using this class are presented in Demo distributed with EntityDAC
Devart Team
Posts: 842
Joined: Mon 06 Jul 2015 11:34

Return to EntityDAC