Posts

Showing posts from February, 2018

Learning Entity Framework – Core 2.0

Overview It is an open-source lightweight multi-platform ORM.  It runs on Windows, Mac OS, Linux, and UWP.  It does not contain all the features of EF6.  The goal was to learn how to use and configure EF core and if there are any advantages to using it.   I was very pleasantly surprised that is not that hard to use.  The real surprise was learning about the new features in EF core and that they were not in EF6.2.  I also learned that I could leverage some additional features from EF 6.2. New for Core Make sure you use the Microsoft NuGet package Configuration is a little more involved You must have an exe to apply for migrations Many-to-many relations are better Now support one-to-one Has a nice logging system based on Microsoft.Extension.Logger.Ilogger General logger now Filter and order are now performed on the server instead of the client Easier turning off the change tracker Easier Add and Update Migration files can be saved...