问题
I currently try to migrate an application of mine from datasets to EF4. So I have an existing database. One of the tables is mapped to 2 classes, depending of the value of a column. So I am in a TBH schema with an existing table and an existing discriminator. Is there a way to discribe this using annotations ?
thanks
回答1:
No. TPH discriminator can be controlled only through Fluent-API.
来源:https://stackoverflow.com/questions/10014410/entity-framework-4-tph-table-per-hierarchy-and-annotation