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.

enter image description here

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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -