Tag Archives: Code First

Entity Framework Code First Migrations in multiple branch scenarios

The starting information how the situation related to merging migrations can be read in this great post from Anders Abel. I just have an extension to it for a specific situation. Simple case merge migration This is the case when … Continue reading

Rate this:

Posted in Technical Interest | Tagged , , , , | Leave a comment

Dealing with Entity Framework Code First Migrations in a configuration way

I’ve promised in one of my last posts, that I’m going to tell you about our way of using Code First Migrations. If you want to read about it, you can do it here. For this purpose I’ve created some … Continue reading

Rate this:

Posted in Technical Interest | Tagged , , | Leave a comment

Transposing Entity Framework EDMX to Code First

Not so long ago we’ve been turning our Entity Framework usage from the “database project + edmx” approach to the “Code First” way. Why did we do that? Because of the pain at deployments when not having “Entity Framework Migrations”. … Continue reading

Rate this:

Posted in Technical Interest | Tagged , , , , | Leave a comment

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 … Continue reading

Rate this:

Posted in Uncategorized | Tagged , , , , | Leave a comment

Entity Framework 6 Adding Lots of Great Features

Coole EF 6 new features site. Just by updating from 5.0.0 to 6.0.2 I’ve recognized that SqlFunctions do not work anymore (as they are SQL Server specific). Now the new DbFunctions class is to be used for instance for DateDiff … Continue reading

Rate this:

Posted in Technical Interest | Tagged , , , , | Leave a comment