Posts Currently viewing the tag: "EF Core"

We’ve got a new version of .NET Core and a new version of Entity Framework Core (EF Core).  Unfortunately, EF Core 2.1 hasn’t made it any easier to deploy database migrations from DLLs rather than from the source code.  (sigh)  Deploying EF Core migrations from DLLs is a key feature for DevOps…(Read More)

If you’ve followed this blog for a while, you know that I’m obsessed with being able to deploy Entity Framework Core (EF Core) migrations from published (“dotnet publish”) DLLs instead of from the project code.  Why?  Because if you care about DevOps-y things like automated deployments — especially in Visual Studio Team Services…(Read More)

(UPDATE 7/5/2018: If you’re using EF Core 2.1, you’ll probably want to read the updated version of this post.) In a previous blog post, I discussed how difficult it is to deploy Entity Framework Core migrations from the compiled binaries of your project.  It’s still difficult to do.  You…(Read More)

Hey y’all.  I did a talk at Microsoft’s .NET Conf 2017 yesterday.  The video will be up on Channel 9 soon at this link. DevOps with ASP.NET Core, EF Core, & TFS2017 DevOps is all about software delivery. Create an automated, streamlined path from development to testing to deployment – that’s basically…(Read More)

I just wrapped up doing my new Entity Framework Core for Enterprise Applications talk at VSLive Redmond 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…(Read More)

Have you tried doing a “dotnet ef migrations” or “dotnet ef database update” command for Entity Framework Core and gotten this error? 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 assembly reference…(Read More)

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…(Read More)

[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…(Read More)

[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…(Read More)

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…(Read More)