-
VSLive Austin 2017: Entity Framework Core for Enterprise Applications
I just wrapped up doing my new Entity Framework Core for Enterprise Applications talk at VSLive Austin 2017. I had a lot more content that I could have ever possibly covered in 75 minutes. As promised, here are the slides and EF Core code samples for that talk. Entity Framework for Enterprise Applications What do…
-
“DevOps with ASP.NET Core, EF Core, & TFS2017”: Slides & Code
[Updated 3/23/2017 — If you saw this talk at DevBoston or Code Camp Boston, it’s the same slides and code at NYC .NET.] I spoke at the NYC .NET Developers user group last night and gave my new “DevOps with ASP.NET Core, EF Core, & TFS2017” talk. DevOps is all about software delivery. Create an…
-
Deploy Entity Framework Core Migrations from a DLL
[Updated 4/27/2018 — Added an EF Core 2 version of this script in a new blog post.] [Updated 3/29/2017 — Added a bash version of this script for deploying EF Core Migrations from Linux.] Entity Framework Migrations let you deploy incremental updates to a target database. With Entity Framework Core (EF Core) this is done from…
-
A Non-Terrible Workaround for the Dreaded EF Core Migration FileLoadException Diagnostics Problem
In my Entity Framework Core Migrations walkthrough, I showed a workaround for an exception when you add a migration. If you ran “dotnet ef migrations add” on a netcoreapp1.1 project, you’d get the following exception. System.IO.FileLoadException: Could not load file or assembly ‘System.Diagnostics.DiagnosticSource, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The located assembly’s manifest definition does not match the…
-
EF Core Migrations without Hard-coding a Connection String using IDbContextFactory
[12/19/2017 — This has changed in EF Core 2.0. Here’s the updated details.] In my last post, I showed you how to set up an ASP.NET Core and Entity Framework Core solution so that you can use EF Core Migrations for database updates. That code sample used a hard-coded database connection string in the OnConfiguring()…
-
Walkthrough: Entity Framework Core 1.1 with Migrations
Here’s a walk-through on how to create a new solution that uses an ASP.NET Core project, an MSTest unit test project, and Entity Framework Core 1.1 (EFCore1.1). I’m not sure if you’ve found this to be the case but I’ve been struggling with the documentation for a few days trying to figure out how to…