how to distinguish which property is db mapped fields?

Posts   
 
    
xc_lw2000
User
Posts: 48
Joined: 12-Dec-2006
# Posted on: 27-Jul-2009 12:17:06   

I want to reflect an Entity,how to distinguish which property is a db fields mapped property? for example:I have a table named "TEST",and there are two fields "Field1","Field2". In the generated code TestEntity,there are several properties,such as "Field1","Field2","CustomProperties","CustomPropertiesOfType","FieldsCustomProperties" and so on.

I know "Field1","Field2" is db mapped properties,and the other is class properties,but when I reflect an Entity,how could I distinguish these?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 27-Jul-2009 14:54:58   

Properties mapped on DB fields are listed in the entity.Fields collection also in the TestFields enum.