{"id":42294,"date":"2022-09-14T10:55:10","date_gmt":"2022-09-14T17:55:10","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet\/?p=42294"},"modified":"2024-12-13T15:11:09","modified_gmt":"2024-12-13T23:11:09","slug":"announcing-ef7-release-candidate-1","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-ef7-release-candidate-1\/","title":{"rendered":"Announcing Entity Framework 7 Release Candidate 1"},"content":{"rendered":"<p>Entity Framework Core 7 (EF7) Release Candidate 1 has shipped! The team focused on addressing defects, minor enhancements, and putting the finishing touches on features.<\/p>\n<p>See the <a href=\"https:\/\/github.com\/dotnet\/efcore\/issues?q=milestone%3A7.0.0-rc1\">full list of EF7 RC1 changes<\/a> on GitHub.<\/p>\n<p>For a detailed look at what&#8217;s new in EF7, with working samples, check out our newly updated <a href=\"https:\/\/docs.microsoft.com\/ef\/core\/what-is-new\/ef-core-7.0\/whatsnew\">What&#8217;s New in EF7<\/a> documentation. You can also read the feature deep dives in our previous blog posts:<\/p>\n<ul>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-ef7-preview7-entity-framework\/\">EF7 Preview 7 &#8211; Interceptors<\/a><\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-ef-core-7-preview6-performance-optimizations\/\">EF7 Preview 6 &#8211; Performance<\/a><\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/category\/dotnet-core\/\">EF7 Preview 5 &#8211; Table-per-Concrete Type (TPC)<\/a><\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-entity-framework-7-preview-4\/\">EF7 Preview 4 &#8211; DDD-friendly converters<\/a><\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-entity-framework-7-preview-3\/\">EF7 Preview 3 &#8211; customizable database-first scaffolding templates<\/a><\/li>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-entity-framework-7-preview-1\/\">EF7 Preview 1 &#8211; the beginning<\/a><\/li>\n<\/ul>\n<h2>EF7 Prerequisites<\/h2>\n<ul>\n<li>EF7 targets .NET 6, which means it can be used on .NET 6 (LTS) or .NET 7.<\/li>\n<li>EF7 will not run on .NET Framework.<\/li>\n<\/ul>\n<p>EF7 is the successor to EF Core 6.0, not to be confused with <a href=\"https:\/\/github.com\/dotnet\/ef6\">EF6<\/a>. If you are considering upgrading from EF6, please read our guide to <a href=\"https:\/\/docs.microsoft.com\/ef\/efcore-and-ef6\/porting\/\">port from EF6 to EF Core<\/a>.<\/p>\n<h2>How to get EF7 RC1<\/h2>\n<p>EF7 is distributed exclusively as a set of NuGet packages. For example, to add the SQL Server provider to your project, you can use the following command using the dotnet tool:<\/p>\n<pre><code class=\"language-bash\">dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 7.0.0-rc.1.22426.7<\/code><\/pre>\n<p>This following table links to the RC1 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 href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore<\/a><\/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 href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.SqlServer\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore.SqlServer<\/a><\/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 href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite<\/a><\/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 href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Sqlite\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore.Sqlite<\/a><\/td>\n<td style=\"text-align: left;\">Database provider for SQLite that includes the native binary for the database engine<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Sqlite.Core\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore.Sqlite.Core<\/a><\/td>\n<td style=\"text-align: left;\">Database provider for SQLite <em>without<\/em> a packaged native binary<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite<\/a><\/td>\n<td style=\"text-align: left;\">SQLite support for spatial types<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Cosmos\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore.Cosmos<\/a><\/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 href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.InMemory\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore.InMemory<\/a><\/td>\n<td style=\"text-align: left;\">The in-memory database provider<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Tools\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore.Tools<\/a><\/td>\n<td style=\"text-align: left;\">EF Core PowerShell commands for the Visual Studio Package Manager Console; use this to integrate tools like <a href=\"https:\/\/docs.microsoft.com\/ef\/core\/managing-schemas\/scaffolding\">scaffolding<\/a> and <a href=\"https:\/\/docs.microsoft.com\/ef\/core\/managing-schemas\/migrations\/\">migrations<\/a> with Visual Studio<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Design\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore.Design<\/a><\/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 href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Proxies\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore.Proxies<\/a><\/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 href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Abstractions\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore.Abstractions<\/a><\/td>\n<td style=\"text-align: left;\">Decoupled EF Core abstractions; use this for features like extended data annotations defined by EF Core<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Relational\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore.Relational<\/a><\/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 href=\"https:\/\/www.nuget.org\/packages\/Microsoft.EntityFrameworkCore.Analyzers\/7.0.0-rc.1.22426.7\">Microsoft.EntityFrameworkCore.Analyzers<\/a><\/td>\n<td style=\"text-align: left;\">C# analyzers for EF Core<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>We also published the release candidate 1 of the <a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.Data.Sqlite.Core\/7.0.0-rc.1.22426.7\">Microsoft.Data.Sqlite.Core<\/a> provider for <a href=\"https:\/\/docs.microsoft.com\/dotnet\/framework\/data\/adonet\/ado-net-overview\">ADO.NET<\/a>.<\/p>\n<h2>Installing the EF7 Command Line Interface (CLI)<\/h2>\n<p>Before you can execute EF7 Core migration or scaffolding commands, you&#8217;ll have to install the CLI package as either a global or local tool.<\/p>\n<p>To install the RC tool globally, install with:<\/p>\n<pre><code class=\"language-bash\">dotnet tool install --global dotnet-ef --version 7.0.0-rc.1.22426.7 <\/code><\/pre>\n<p>If you already have the tool installed, you can upgrade it with the following command:<\/p>\n<pre><code class=\"language-bash\">dotnet tool update --global dotnet-ef --version 7.0.0-rc.1.22426.7 <\/code><\/pre>\n<p>It&#8217;s possible to use this new version of the EF7 CLI with projects that use older versions of the EF Core runtime.<\/p>\n<h2>Daily builds<\/h2>\n<p>EF7 release candidates are aligned with .NET 7 release candidates. These releases tend to lag behind the latest work on EF7. Consider using the <a href=\"https:\/\/github.com\/aspnet\/AspNetCore\/blob\/master\/docs\/DailyBuilds.md\">daily builds<\/a> instead to get the most up-to-date EF7 features and bug fixes.<\/p>\n<p>As with the release candidates, the daily builds require .NET 6.<\/p>\n<h2>The .NET Data Community Standup<\/h2>\n<p>The .NET data team is now live streaming every other Wednesday at 10am Pacific Time, 1pm Eastern Time, or 17:00 UTC. Join the stream to ask questions about the data-related topic of your choice, including the latest release candidate.<\/p>\n<ul>\n<li><a href=\"https:\/\/aka.ms\/efstandups\">Watch our YouTube playlist<\/a> of previous shows<\/li>\n<li><a href=\"https:\/\/live.dot.net\">Visit the .NET Community Standup<\/a> page to preview upcoming shows<\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/efcore\/issues\/22700\">Submit your ideas<\/a> for a guest, product, demo, or other content to cover<\/li>\n<\/ul>\n<h2>Documentation and Feedback<\/h2>\n<p>The starting point for all EF Core documentation is <a 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 GitHub repo<\/a>.<\/p>\n<h2>Helpful Links<\/h2>\n<p>The following links are provided for easy reference and access.<\/p>\n<ul>\n<li><a href=\"https:\/\/aka.ms\/efstandups\">EF Core Community Standup Playlist: https:\/\/aka.ms\/efstandups<\/a><\/li>\n<li><a href=\"https:\/\/aka.ms\/efdocs\">Main documentation: https:\/\/aka.ms\/efdocs<\/a><\/li>\n<li><a href=\"https:\/\/aka.ms\/efcorefeedback\">Issues and feature requests for EF Core: https:\/\/aka.ms\/efcorefeedback<\/a><\/li>\n<li><a href=\"https:\/\/aka.ms\/efroadmap\">Entity Framework Roadmap: https:\/\/aka.ms\/efroadmap<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/efcore\/issues\/27185\">Bi-weekly updates: https:\/\/github.com\/dotnet\/efcore\/issues\/27185<\/a><\/li>\n<\/ul>\n<h2>Thank you from the team<\/h2>\n<p>A big thank you from the EF team to everyone who has used and contributed to EF over the years!<\/p>\n<p>Welcome to EF7.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Announcing EF7 Release Candidate 1<\/p>\n","protected":false},"author":368,"featured_media":42295,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[685,859],"tags":[4,30,7265,71],"class_list":["post-42294","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet","category-entity-framework","tag-net","tag-announcement","tag-announcements","tag-entity-framework-core"],"acf":[],"blog_post_summary":"<p>Announcing EF7 Release Candidate 1<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/42294","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=42294"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/42294\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/42295"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=42294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=42294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=42294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}