Entity Framework TPT (Table per Type) hierarchy database generated option

I’m moving now from edmx to code first approach. When implementing table per type inheritance I got an exception telling me the following: DatabaseGeneratedOption = Identity conflicts with DatabaseGeneratedOption = None. It took a few minutes to recognize that the deriving types have the generated option set to None. It is to be removed from all of them.



About Tamas Nemeth

Husband and proud father of two daughters in Nürnberg. I'm working as a Senior Software Developer and an enthusiastic Clean-Coder. I spend most of my free time with my family (playing, hiking, etc...). I also play table-tennis and badminton sometimes...
This entry was posted in Uncategorized and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s