{"id":30290,"date":"2020-10-13T11:01:37","date_gmt":"2020-10-13T18:01:37","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet\/?p=30290"},"modified":"2020-10-13T11:01:37","modified_gmt":"2020-10-13T18:01:37","slug":"announcing-entity-framework-core-ef-core-5-rc2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-entity-framework-core-ef-core-5-rc2\/","title":{"rendered":"Announcing Entity Framework Core (EF Core) 5 RC2"},"content":{"rendered":"<p>Today, the Entity Framework Core team announces the second release candidate (RC2) of <a\n        href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore\/5.0.0-rc.2.20475.6\">EF Core 5.0<\/a>. This is\n    a feature complete release candidate of EF Core 5.0 and ships with a &quot;go live&quot; license. You are supported\n    using it in production. This is a great opportunity to start using EF Core 5.0 early while there is still time to\n    fix remaining issues. We&#39;re looking for reports of any remaining critical bugs that should be fixed before the\n    final release.<\/p>\n<h2 id=\"prerequisites\">Prerequisites<\/h2>\n<p><strong>EF Core 5.0 will <em>not<\/em> run on .NET Standard 2.0 platforms, including .NET Framework.<\/strong><\/p>\n<ul>\n<li>The release candidates of EF Core 5.0 require <a\n            href=\"https:\/\/github.com\/dotnet\/standard\/blob\/master\/docs\/versions\/netstandard2.1.md\">.NET Standard 2.1<\/a>.\n    <\/li>\n<li>This means that EF Core 5.0 will run on .NET Core 3.1 and does <em>not<\/em> require .NET 5.<\/li>\n<li><strong>To summarize<\/strong>: EF Core 5.0 runs on <a\n                    href=\"https:\/\/docs.microsoft.com\/dotnet\/standard\/net-standard#net-implementation-support\">platforms\n                    that support .NET Standard 2.1<\/a>.\n    <\/li>\n<\/ul>\n<h2 id=\"how-to-get-ef-core-5-0-release-candidate-1\">How to get EF Core 5.0 Release Candidate 2<\/h2>\n<p>EF Core is distributed exclusively as a set of NuGet packages.\n    For example, to add the SQL Server provider to your project, you can use the following command using the dotnet\n    tool:<\/p>\n<pre><code class=\"lang-bash\"><span class=\"hljs-selector-tag\">dotnet<\/span> <span class=\"hljs-selector-tag\">add<\/span> <span class=\"hljs-selector-tag\">package<\/span> <span class=\"hljs-selector-tag\">Microsoft<\/span><span class=\"hljs-selector-class\">.EntityFrameworkCore<\/span><span class=\"hljs-selector-class\">.SqlServer<\/span> <span class=\"hljs-selector-tag\">--version<\/span> <span class=\"hljs-selector-class\">5.0.0-rc.2.20475.6<\/span>\r\n<\/code><\/pre>\n<p>This following table links to the RC2 versions of the EF Core packages and describes what they are used for.<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align:left\"><strong>Package<\/strong><\/th>\n<th style=\"text-align:left\"><strong>Purpose<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align:left\"><a\n                    href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore\/5.0.0-rc.2.20475.6\">Microsoft.EntityFrameworkCore<\/a>\n            <\/td>\n<td style=\"text-align:left\">The main EF Core package that is independent of specific database providers<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><a\n                    href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.SqlServer\/5.0.0-rc.2.20475.6\">Microsoft.EntityFrameworkCore.SqlServer<\/a>\n            <\/td>\n<td style=\"text-align:left\">Database provider for Microsoft SQL Server and SQL Azure<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><a\n                    href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite\/5.0.0-rc.2.20475.6\">Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite<\/a>\n            <\/td>\n<td style=\"text-align:left\">SQL Server support for spatial types<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><a\n                    href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Sqlite\/5.0.0-rc.2.20475.6\">Microsoft.EntityFrameworkCore.Sqlite<\/a>\n            <\/td>\n<td style=\"text-align:left\">Database provider for SQLite that includes the native binary for the database\n                engine<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><a\n                    href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite\/5.0.0-rc.2.20475.6\">Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite<\/a>\n            <\/td>\n<td style=\"text-align:left\">SQLite support for spatial types<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><a\n                    href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Cosmos\/5.0.0-rc.2.20475.6\">Microsoft.EntityFrameworkCore.Cosmos<\/a>\n            <\/td>\n<td style=\"text-align:left\">Database provider for Azure Cosmos DB<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><a\n                    href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.InMemory\/5.0.0-rc.2.20475.6\">Microsoft.EntityFrameworkCore.InMemory<\/a>\n            <\/td>\n<td style=\"text-align:left\">The in-memory database provider<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><a\n                    href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Tools\/5.0.0-rc.2.20475.6\">Microsoft.EntityFrameworkCore.Tools<\/a>\n            <\/td>\n<td style=\"text-align:left\">EF Core PowerShell commands for the Visual Studio Package Manager Console; use\n                this to integrate tools like <a\n                    href=\"https:\/\/docs.microsoft.com\/ef\/core\/managing-schemas\/scaffolding\">scaffolding<\/a> and <a\n                    href=\"https:\/\/docs.microsoft.com\/ef\/core\/managing-schemas\/migrations\/\">migrations<\/a> with Visual\n                Studio<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><a\n                    href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Design\/5.0.0-rc.2.20475.6\">Microsoft.EntityFrameworkCore.Design<\/a>\n            <\/td>\n<td style=\"text-align:left\">Shared design-time components for EF Core tools<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><a\n                    href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Proxies\/5.0.0-rc.2.20475.6\">Microsoft.EntityFrameworkCore.Proxies<\/a>\n            <\/td>\n<td style=\"text-align:left\">Lazy-loading and change-tracking proxies<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><a\n                    href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Abstractions\/5.0.0-rc.2.20475.6\">Microsoft.EntityFrameworkCore.Abstractions<\/a>\n            <\/td>\n<td style=\"text-align:left\">Decoupled EF Core abstractions; use this for features like extended data\n                annotations defined by EF Core<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><a\n                    href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Relational\/5.0.0-rc.2.20475.6\">Microsoft.EntityFrameworkCore.Relational<\/a>\n            <\/td>\n<td style=\"text-align:left\">Shared EF Core components for relational database providers<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:left\"><a\n                    href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Analyzers\/5.0.0-rc.2.20475.6\">Microsoft.EntityFrameworkCore.Analyzers<\/a>\n            <\/td>\n<td style=\"text-align:left\">C# analyzers for EF Core<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"installing-the-ef-core-command-line-interface-cli-\">Installing the EF Core Command Line Interface (CLI)<\/h2>\n<p>As with EF Core 3.0 and 3.1, the EF Core CLI is no longer included in the .NET Core SDK. Before you can execute EF\n    Core migration or scaffolding commands,\n    you&#39;ll have to install this package as either a global or local tool.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/10\/efcorerc2-scaled.jpg\"\n        alt=\"EF Core 5.0 RC2\" title=\"EF Core 5.0 RC2\"><\/p>\n<p>To install the RC2 tool globally the first time, use:<\/p>\n<pre><code class=\"lang-bash\"><span class=\"hljs-selector-tag\">dotnet<\/span> <span class=\"hljs-selector-tag\">tool<\/span> <span class=\"hljs-selector-tag\">install<\/span> <span class=\"hljs-selector-tag\">--global<\/span> <span class=\"hljs-selector-tag\">dotnet-ef<\/span> <span class=\"hljs-selector-tag\">--version<\/span> <span class=\"hljs-selector-class\">5.0.0-rc.2.20475.6<\/span>\r\n<\/code><\/pre>\n<p>If you already have the tool installed, update it with:<\/p>\n<pre><code class=\"lang-bash\"><span class=\"hljs-selector-tag\">dotnet<\/span> <span class=\"hljs-selector-tag\">tool<\/span> <span class=\"hljs-selector-tag\">update<\/span> <span class=\"hljs-selector-tag\">--global<\/span> <span class=\"hljs-selector-tag\">dotnet-ef<\/span> <span class=\"hljs-selector-tag\">--version<\/span> <span class=\"hljs-selector-class\">5.0.0-rc.2.20475.6<\/span>\r\n<\/code><\/pre>\n<p>It\u2019s possible to use this new version of the EF Core CLI with projects that use older versions of the EF Core\n    runtime.<\/p>\n<h2 id=\"what-s-new-in-ef-core-5-rc2\">What&#39;s New in EF Core 5 RC2<\/h2>\n<p>We maintain documentation covering <a href=\"https:\/\/docs.microsoft.com\/ef\/core\/what-is-new\/ef-core-5.0\/whatsnew\">new\n        features introduced into each release<\/a>. This release included several bug fixes.<\/p>\n<h2 id=\"daily-builds\">Daily builds<\/h2>\n<p>EF Core previews and release candidates are aligned with the .NET 5 release cycle. These releases tend to lag behind\n    the latest work on EF Core. Consider using the <a\n        href=\"https:\/\/github.com\/aspnet\/AspNetCore\/blob\/master\/docs\/DailyBuilds.md\">daily builds<\/a> instead to get the\n    most up-to-date EF Core features and bug fixes.<\/p>\n<p>As with the previews, the daily builds do not require .NET 5; they can be used with GA\/RTM release of .NET Core 3.1.\n    Daily builds are considered stable.<\/p>\n<h2 id=\"contribute-to-net-5\">Contribute to .NET 5<\/h2>\n<p>The .NET documentation team is <a href=\"https:\/\/github.com\/dotnet\/docs\/issues\/18923\">reorganizing .NET content<\/a> to\n    better match the workloads you build with .NET. This includes a new <a\n        href=\"https:\/\/github.com\/dotnet\/docs\/issues\/19029\">.NET Data landing page<\/a> that will link out to data-related\n    topics ranging from EF Core to APIs, Big Data, and Machine learning. The planning and execution will be done\n    completely in the open on GitHub. This is your opportunity to help shape the hierarchy and content to best fit your\n    needs as a .NET developer. We look forward to your contributions!<\/p>\n<h2 id=\"the-ef-core-community-standup\">The EF Core Community Standup<\/h2>\n<p>The EF Core team is now live streaming every other Wednesday at 10am Pacific Time, 1pm Eastern Time, or 17:00 UTC.\n    Join the stream to ask questions about the EF Core topic of your choice, including the latest release candidate.\n<a href=\"https:\/\/dotnet.microsoft.com\/platform\/community\/standup\">Visit the .NET Community Standup<\/a> page to\n        preview upcoming shows and view recordings from past shows.<\/p>\n<\/ul>\n<h2 id=\"documentation-and-feedback\">Documentation and Feedback<\/h2>\n<p>The starting point for all EF Core documentation is <a\n        href=\"https:\/\/docs.microsoft.com\/ef\/\">docs.microsoft.com\/ef\/<\/a>.<\/p>\n<p>Please file issues found and any other feedback on the <a href=\"https:\/\/github.com\/dotnet\/efcore\">dotnet\/efcore\n        GitHub repo<\/a>.<\/p>\n<h2 id=\"helpful-short-links\">Helpful Short Links<\/h2>\n<p>The following short links are provided for easy reference and access.<\/p>\n<p>Main documentation:\n    <a href=\"https:\/\/aka.ms\/efdocs\">https:\/\/aka.ms\/efdocs<\/a><\/p>\n<p>Issues and feature requests for EF Core:\n    <a href=\"https:\/\/aka.ms\/efcorefeedback\">https:\/\/aka.ms\/efcorefeedback<\/a><\/p>\n<p>Entity Framework Roadmap:\n    <a href=\"https:\/\/aka.ms\/efroadmap\">https:\/\/aka.ms\/efroadmap<\/a><\/p>\n<p>What&#39;s new in EF Core 5.x?\n    <a href=\"https:\/\/aka.ms\/efcore5\">https:\/\/aka.ms\/efcore5<\/a><\/p>\n<h2 id=\"thank-you-from-the-team\">Thank you from the team<\/h2>\n<p>A big thank you from the EF team to everyone who has used EF over the years!<\/p>\n<table>\n<tr>\n<td><a href=\"https:\/\/github.com\/ajcvickers\"><img decoding=\"async\"\n                    src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/03\/efteam_ajcvickers.jpeg\"\n                    alt=\"ajcvickers\" width=200px><br>Arthur Vickers<\/a><\/td>\n<td><a href=\"https:\/\/github.com\/AndriySvyryd\"><img decoding=\"async\"\n                    src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/03\/efteam_AndriySvyryd.jpeg\"\n                    alt=\"AndriySvyryd\" width=200px><br>Andriy Svyryd<\/a><\/td>\n<td><a href=\"https:\/\/github.com\/bricelam\"><img decoding=\"async\"\n                    src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/03\/efteam_bricelam.jpeg\"\n                    alt=\"\" width=200px><br>Brice Lambson<\/a><\/td>\n<td><a href=\"https:\/\/github.com\/JeremyLikness\"><img decoding=\"async\"\n                    src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/03\/efteam_JeremyLikness.jpeg\"\n                    alt=\"JeremyLikness\" width=200px><br>Jeremy Likness<\/a>\n        <\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/github.com\/maumar\"><img decoding=\"async\"\n                    src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/03\/efteam_maumar.jpeg\"\n                    alt=\"maumar\" width=200px><br>Maurycy Markowski<\/a><\/td>\n<td><a href=\"https:\/\/github.com\/roji\"><img decoding=\"async\"\n                    src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/03\/efteam_roji-1-300x300.png\"\n                    alt=\"roji\" width=200px><br>Shay Rojansky<\/a><\/td>\n<td><a href=\"https:\/\/github.com\/smitpatel\"><img decoding=\"async\"\n                    src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2020\/03\/efteam_smitpatel.png\"\n                    alt=\"smitpatel\" width=200px><br>Smit Patel<\/a>\n        <\/td>\n<td>&nbsp;<\/td>\n<\/tr>\n<\/table>\n<h2 id=\"thank-you-to-our-contributors-\">Thank you to our contributors!<\/h2>\n<p>A huge &quot;thanks&quot; to all the community members who have already contributed code or documentation to\n    the EF Core 5 release!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Entity Framework Core EF Core 5.0 gets closer to a final release. RC2 is now available with bug fixes and a go-live license.<\/p>\n","protected":false},"author":368,"featured_media":30294,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[685,196,195,197,756,859],"tags":[4,9,30,32,70,71],"class_list":["post-30290","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet","category-dotnet-core","category-dotnet-framework","category-aspnet","category-csharp","category-entity-framework","tag-net","tag-net-core","tag-announcement","tag-asp-net-core","tag-entity-framework","tag-entity-framework-core"],"acf":[],"blog_post_summary":"<p>Entity Framework Core EF Core 5.0 gets closer to a final release. RC2 is now available with bug fixes and a go-live license.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/30290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/368"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=30290"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/30290\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/30294"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=30290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=30290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=30290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}