Entity with Unmapped Property?
Posted: Fri 03 Oct 2014 17:03
Is is possible to add an "unmapped" property to an entity (i.e. a property which has no data-storage column specified). If I try this by adding a new property and specify "none" for Storage Column, then the Entity Developer creates a compiler error "Problem in mapping fragments ... No mapping specified for ... An Entity with Key(PK) will not round-trip when: Entity is type [...]
I would like to add some extended properties to some entities for application use, that would be ignored for data-storage operations... but wanted to avoid wrapping each entity class in another class just for that purpose. I know, maybe it's bad design practice... but I was hoping this could be done with the EF designer and code generation.
Thanks
I would like to add some extended properties to some entities for application use, that would be ignored for data-storage operations... but wanted to avoid wrapping each entity class in another class just for that purpose. I know, maybe it's bad design practice... but I was hoping this could be done with the EF designer and code generation.
Thanks