Aspnetcore.docs: Update "ASP.NET Core and Entity Framework 6" for .NET Core 3.0

Created on 9 Nov 2019  Â·  21Comments  Â·  Source: dotnet/AspNetCore.Docs

To use Entity Framework 6, your project has to compile against .NET Framework, as Entity Framework 6 doesn't support .NET Core. If you need cross-platform features you will need to upgrade to Entity Framework Core.

This is no longer the case for ef6.3

Edit by @Rick-Anderson
6K PV

See Announcing Entity Framework 6.3 Preview with .NET Core Support

See also #15684 if it's relevant.


EDIT : 6K PV

Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Help wanted Source - Docs.ms doc-enhancement

All 21 comments

Hi, is this a good first timer item? If I understand correctly someone just needs to delete the paragraph from the documentation?

@alrz It looks like quite a bit needs to be rewritten.

@alrz you could do #15684

Before Overview - add something like

This article has not been updated for .NET Core 3. Entity Framework 6.3 and later supports .NET Core. For more information, see Entity Framework 6.3 with .NET Core Support

@pgrudzien12 @damienpontifex let me know if you're interested in updating this for EF 6.3

(I think you meant to mention @attrib75)

I'll certainly take any part of this if anyone wants me to. I just need a little direction to understand. If not, that's cool too. I'll look out for another beginner issue

~@alrz~ @attrib75 you're welcome to work on this. Let us know before you start.

@Rick-Anderson Is there any recent progress on this issue?

~@alrz~ @attrib75 you're welcome to work on this. Let us know before you start.

Whoops! Somehow I missed this

@pgrudzien12 @damienpontifex are you interested in updating this?

If not, Hopefully @wadepickett can get to this next month.

Here's how I'd do it:

  • Generate a new RP project with movie model.
  • Update Startup , the project file, and EF code with changes needed for EF6.

cc @tdykstra @pgrudzien12 @damienpontifex does that sound reasonable.

Sorry, I haven't been working with EF6 for a while so it'd be back to basics for me again researching what would be needed here.

Same answer as @damienpontifex for me.

@attrib75 all we need is a sample app using EF 6 and ASP.NET Core 3.1
If you can do that I'll help with the article.

@Rick-Anderson Sure. I can do that. Help me to understand. Just make a very basic ASP.NET Core app with EF6? Just bare bones, nothing else in it? How do I submit it to this? How would the app link in the article? Thanks for helping a beginner contributor!

Yes, just a basic sample. Most folks seem to do the EF6 code calls from a web API project so that's fine.
Create the sample in the AspNetCore.Docs/aspnetcore/data/entity-framework-6/3.xsample
so you'll need to create the 3.x sample.

If you select version 2.2 or lower in the version selector, you get this version
We can use that to create the 3.1 version. You might want to use that code.

@Rick-Anderson Ok thanks, I'll give that a go this weekend.

@Rick-Anderson I made a PR: #19537
thanks

@attrib75 ~I brought your commits over to #19546, where I'll continue to work on it. Thanks for doing this, I should have something for you to review in a couple days.~ Edit, comment applies to PR

@attrib75 thanks again for all your help. The new doc is now live https://docs.microsoft.com/en-us/aspnet/core/data/entity-framework-6

@Rick-Anderson How cool is that?! My pleasure.

@attrib75 feel free to edit in browser and change the link on your name.
At the top right of the article, select the Edit pen icon:

image

Select the pen icon again. Save.

Was this page helpful?
0 / 5 - 0 ratings