Unwanted Entity Fields

Posts   
 
    
cabral avatar
cabral
User
Posts: 16
Joined: 24-Oct-2005
# Posted on: 24-Oct-2005 23:51:54   

Does anyone know if I can select only a subset of the fields in an entity for code generation? I am starting to build a subsystem in the .NET environment and I want to work only with a few number of fields in an entity. I don't want my entity class to have lots of properties that I will not use at all.

I didn't find any option where I can deselect some fields from the entity... Does anyone know if that is really impossible? Do I really have to add all the fields? If so, why would that be??

Thanks

Cleiton Cabral

Paul.Lewis
User
Posts: 147
Joined: 22-Aug-2005
# Posted on: 25-Oct-2005 05:33:58   

cabral wrote:

Does anyone know if I can select only a subset of the fields in an entity for code generation? I am starting to build a subsystem in the .NET environment and I want to work only with a few number of fields in an entity. I don't want my entity class to have lots of properties that I will not use at all.

This links speaks to your question on subset/subclass entities:

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=551

cabral avatar
cabral
User
Posts: 16
Joined: 24-Oct-2005
# Posted on: 25-Oct-2005 13:07:41   

In that post, he wants to hide some properties from clients dynamically.

In my case, I would like to do something like going to the Project Explorer / MyProject / Entities / MyTable and check only the fields I am interested in. Then, I would go to Project / Generate, something like that. This way, my entity class would have only the properties for the fields I want.

I think I can go to the generated class and delete the properties manually, but I will have to do that again when I need to regenerate it...

Paul.Lewis wrote:

cabral wrote:

Does anyone know if I can select only a subset of the fields in an entity for code generation? I am starting to build a subsystem in the .NET environment and I want to work only with a few number of fields in an entity. I don't want my entity class to have lots of properties that I will not use at all.

This links speaks to your question on subset/subclass entities:

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=551

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 25-Oct-2005 15:37:37   

This feature is available in the new release (v1.0.2005.1)

cabral avatar
cabral
User
Posts: 16
Joined: 24-Oct-2005
# Posted on: 25-Oct-2005 16:42:39   

Walaa wrote:

This feature is available in the new release (v1.0.2005.1)

Cool, it is exactly what I wanted! Thanks!