Discriminator Column Type

I've been looking at various Code First examples of TPT (Table Per Type) in Entity Framework.

I have an abstract base class with 4 concrete implementations, all of which share the exact same interface. These are being stored using EF in a single table named after the abstract base class.

What I wish to do is use the EF Discriminator column, but without using the automatic table creation in Code First, instead adding the configuration and mappings manually. Does anyone know if this would be possible and if so, what the type of the Discriminator column is (name, type, length, nullable, etc.) so I can create one manually?

Many thanks.

链接地址: http://www.djcxy.com/p/83238.html

上一篇: 如何在数据库中创建Discriminator列

下一篇: 鉴别器列类型