Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Closed Feature: Map the same table to multiple entities [392]

$
0
0
I would like to be able to map the same table to multiple entities. This is useful for query purposes (restricted views of data), as well as for inserting different sets of data into a table. This is useful for TPH scenarios where you could map a separate class that contains the descriminator column as an assignable property. In this way you can insert a "generic" record, and query a specific instance in the TPH heirarchy.
Comments: See comments.

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>