阅读背景:

Inheritance with EF Code First: Part 2 – Table per Type (TPT)

来源:互联网 

In the previous blog post you saw that there are three different approaches to representing an inheritance hierarchy and I explained Table per Hierarchy (TPH) as the default mapping strategy in EF Code First. We argued that the disadvantages of TPH may be too serious for our design since it results in denormalized schemas that can become a major burden in the long run. In today’s blog post we are going to learn about Table per Type (TPT) as another inheritance mapping strategy and we'll see that TPT doesn’t expose us to this problem. you s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: