I’m using table per hiearchy for the following model:
Story (base class)
– Individual Story (sub class)
– Team Story (sub class)
I column in my table that I want to share between both derived types, but I would like to name it differently in each class. Is this possible? I tried a few different things but could not get it to work out correctly (can dig up the exact exception tomrrow at work if need be).
Thanks!
No it is not possible. The column is mapped to property in the base class and this property is derived in sub classes. You cannot change the name of property in derived class and EF doesn’t allow mapping shared properties in derived classes (they must be mapped in the base class).