c# - Entity Framework And Business Objects -
i have never used entity framework before , try personal projects implementing feet wet.
i see entities can exposed presentation layer. don't want fields exposed, fields modified dates , created dates , various other database fields.
how implement business objects , expose properties need still keep objects serializable?
also advantages have on linqtosql?
when define entity in edmx model can specify visibility of each property's setter , getter, if don't want modifieddate visible in other layers, can specify internal.
if requirements more complicated modifieddate should accessible in entities assembly , business logic assembly not in ui assembly, need create object exchanged between business logic , ui logic layers.
Comments
Post a Comment