locked
Entity Framework Core 2.x targeting .net framework any different ? RRS feed

  • Question

  • User-1676181112 posted

    i want to start learning entity framework core 2.x using a book that uses visual studio projects that target the "full" .net framework. but i want to learn EF core that target .net core.

    from the functionality point of view is there and difference? i.e. will i be able to learn from the book and my knowledge will apply to projects targeting .net core?

    Sunday, June 16, 2019 7:55 PM

Answers

  • User-1764593085 posted

    Hi qanadily,

    from the functionality point of view is there and difference? i.e. will i be able to learn from the book and my knowledge will apply to projects targeting .net core?

    IMO,there 's no difference.

    EF Core is a .NET Standard 2.0 library. So EF Core requires a .NET implementation that supports .NET Standard 2.0 to run. EF Core can also be referenced by other .NET Standard 2.0 libraries.EF Core is a cross-platform product that can run on .NET Core or .NET Framework.

    Why not learn EF core directly in projects targeting .net core?

    https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/new-db?view=aspnetcore-2.1&tabs=visual-studio

    Xing

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 17, 2019 2:28 AM

All replies

  • User-1764593085 posted

    Hi qanadily,

    from the functionality point of view is there and difference? i.e. will i be able to learn from the book and my knowledge will apply to projects targeting .net core?

    IMO,there 's no difference.

    EF Core is a .NET Standard 2.0 library. So EF Core requires a .NET implementation that supports .NET Standard 2.0 to run. EF Core can also be referenced by other .NET Standard 2.0 libraries.EF Core is a cross-platform product that can run on .NET Core or .NET Framework.

    Why not learn EF core directly in projects targeting .net core?

    https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/new-db?view=aspnetcore-2.1&tabs=visual-studio

    Xing

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 17, 2019 2:28 AM
  • User1120430333 posted

    from the functionality point of view is there and difference? i.e. will i be able to learn from the book and my knowledge will apply to projects targeting .net core?

    The fundamentals between none EF Core, like EF6 if the book is about EF6,  and EF Core are about the same as far as how Linq works and using Dbcontext for data persistence . However, you should get a book on the fundamentals on EF Core and how to use EF Core model scaffolding for EF Core DB first and Code first.

    https://www.entityframeworktutorial.net/efcore/entity-framework-core.aspx

    Monday, June 17, 2019 9:13 AM