Labels

slider

Recent

Navigation

Excited Announcement on Entity Framework Core 5.0 Preview 4

Release of Entity Framework Core 5.0 Preview 4 with bug fixes and several new features

What are new in Entity Framework Core 5.0 Preview 4

Recently Microsoft has released the fourth preview of Entity Framework Core 5.0 with some significant amendments. This Entity Framework Core 5.0 Preview 4 has solved many errors with the previous reviews of Entity Framework Core 5.0, which has helped the developers a lot in making the development work in .Net platform more effectively.

Excited Announcement on Entity Framework Core 5.0 Preview 4

Prerequisites

The 4th preview of Entity Framework Core 5.0 says that it runs on .NET Core 3.1 and another platform that supports .Net standard 2.1 and hence, it does not need .NET 5 presently and in future, it may need as per requirement.
Please note, Entity Framework Core 5.0 won’t run on .NET Standard 2.0 platforms

How to get Entity Framework Core 5.0 previews

Entity Framework Core 5.0 preview 4 is spread across the globe exclusively as a set of NuGet packages.
For instance, add the SQL Server to .Net project through the following command with the .net tool:
dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 5.0.0-preview.4.20220.10

How to Install dotnet Entity Framework core 5.0?

At the time of installing Entity Framework Core 5.0 with platform .net 3.0 and 3.1, the dotnet ef cmd-line tool won’t be incorporated in the .NET Core SDK. Before the execution of Entity Framework Core migration or scaffolding instructions, this package needs to be installed as either a global or local tool.
First, uninstall the existing version of dotnet-ef with the command “(dotnet tool uninstall --global dotnet-ef)”
Write command “(dotnet tool install --global dotnet-ef --version 5-preview.4.20220.10)” to get installed the latest 4th preview of .Net Entity Framework 5.
It’s possible to use this new version of dotnet ef with projects that use older versions of the Entity Framework Core runtime.


What’s new in Entity Framework Core 5 Preview 4

Following are the new features found in Entity Framework Core 5 Preview 4
This 4th preview of Entity Framework Core 5 also includes several bug fixes. 

Configuration of database precision/scale in model

A property Precision/scale can now be specified through the model builder. 
modelBuilder
    .Entity<blog>()
    .Property(b => b.Numeric)
    .HasPrecision(16, 4);
Precision/scale of a property could be still set like “decimal(16,6)”.
This Entity Framework Core 5 documentation will be tracked by the #527 issue.

Mention SQL Server index fill factor

The fill factor can be mentioned when creating an index on SQL Server.
For instance:


modelBuilder
    .Entity<Customer>()
    .HasIndex(e => e.Name)
    .HasFillFactor(90);

This Entity Framework Core 5 Documentation is tracked by the #2378 issue.
The .Net professionals can face the interview questions relevant to Entity Framework Core 5.0 Preview 4 with all error resolving skills.

Daily Developments

All previous Entity Framework Core previews are aligned with the recent .NET 5 previews. These previews have a propensity to insulate behind the latest task on Entity Framework Core 5.0. Consider the daily developments as an alternative to obtain the most up-to-date Entity Framework Core version characteristics and bug fixes.
The .NET 5 is not mandatory for daily developments and the GA/RTM release of .NET Core 3.1 is also suitable for daily developments.

Benefits of Documentation and feedback

Entity Framework Core 5.0 doc has come with a new landing page for guidelines to maintain proper documentation with a hub experience. We expect this new format of Entity Framework 5.0 Preview 4 helps you find the documentation you desire quicker and with lesser clicks. Following links could help you out further, if any issues are created.

Share

Anjan kant

Outstanding journey in Microsoft Technologies (ASP.Net, C#, SQL Programming, WPF, Silverlight, WCF etc.), client side technologies AngularJS, KnockoutJS, Javascript, Ajax Calls, Json and Hybrid apps etc. I love to devote free time in writing, blogging, social networking and adventurous life

Post A Comment:

0 comments: