Ausnahme gefangen: SSL certificate problem: certificate is not yet valid ๐Ÿ“Œ Announcing Entity Framework Core 5.0 Preview 2

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š Announcing Entity Framework Core 5.0 Preview 2


๐Ÿ’ก Newskategorie: Programmierung
๐Ÿ”— Quelle: devblogs.microsoft.com

Announcing Entity Framework Core 5.0 Preview 2

Today we are excited to announce the second preview release of EF Core 5.0.

The second previews of .NET 5 and ASP.NET Core 5.0 are also available now.

Prerequisites

The previews of EF Core 5.0 require .NET Standard 2.1. This means:

  • EF Core 5.0 runs on .NET Core 3.1; it does not require .NET 5.
    • This may change in future previews depending on how the plan for .NET 5 evolves.
  • EF Core 5.0 runs on other platforms that support .NET Standard 2.1.
  • EF Core 5.0 will not run on .NET Standard 2.0 platforms, including .NET Framework.

How to get EF Core 5.0 previews

EF Core 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:

dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 5.0.0-preview.2.20159.4

The EF Core packages published today are:

We have also published the 5.0 preview 2 release of the Microsoft.Data.Sqlite.Core ADO.NET provider.

Installing dotnet ef

As with EF Core 3.0 and 3.1, the dotnet ef command-line tool is no longer included in the .NET Core SDK. Before you can execute EF Core migration or scaffolding commands, youโ€™ll have to install this package as either a global or local tool.

To install the preview tool globally, first uninstall any existing version with:

dotnet tool uninstall --global dotnet-ef

Then install with:

dotnet tool install --global dotnet-ef --version 5.0.0-preview.2.20159.4
Image ef5preview2
EF 5 Preview 2

Itโ€™s possible to use this new version of dotnet ef with projects that use older versions of the EF Core runtime.


Whatโ€™s new in EF Core 5 Preview 2

We maintain documentation covering new features introduced into each preview.

Some of the highlights from preview 2 are called out below.

Use a C# attribute to specify a property backing field

A C# attribute can now be used to specify the backing field for a property. This allows EF Core to still write to and read from the backing field as would normally happen, even when the backing field cannot be found automatically. For example:

public class Blog
{
    private string _mainTitle;

    public int Id { get; set; }

    [BackingField(nameof(_mainTitle))]
    public string Title
    {
        get => _mainTitle;
        set => _mainTitle = value;
    }
}

Documentation is tracked by issue #2230.

Complete discriminator mapping

EF Core uses a discriminator column for TPH mapping of an inheritance hierarchy. Some performance enhancements are possible so long as EF Core knows all possible values for the discriminator. EF Core 5.0 now implements these enhancements.

For example, previous versions of EF Core would always generate this SQL for a query returning all types in a hierarchy:

SELECT [a].[Id], [a].[Discriminator], [a].[Name]
FROM [Animal] AS [a]
WHERE [a].[Discriminator] IN (N'Animal', N'Cat', N'Dog', N'Human')

EF Core 5.0 will now generate the following when a complete discriminator mapping is configured:

SELECT [a].[Id], [a].[Discriminator], [a].[Name]
FROM [Animal] AS [a]

This will be the default behavior starting with preview 3.

Performance improvements in Microsoft.Data.Sqlite

We have made two performance improvements for SQLIte:

  • Retrieving binary and string data with GetBytes, GetChars, and GetTextReader is now more efficient by making use of SqliteBlob and streams.
  • Initialization of SqliteConnection is now lazy.

These improvements are in the ADO.NET Microsoft.Data.Sqlite provider and hence also improve performance outside of EF Core.


Daily builds

EF Core previews are aligned with .NET 5 previews. These previews tend to lag behind the latest work on EF Core. Consider using the daily builds instead to get the most up-to-date EF Core features and bug fixes.

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.


Documentation and feedback

The starting point for all EF Core documentation is docs.microsoft.com/ef/core/.

Please file issues found and any other feedback on the dotnet/efcore GitHub repo.


Thank you from the team

A big thank you from the EF team to everyone who has used EF over the years!

ajcvickers
Arthur Vickers
AndriySvyryd
Andriy Svyryd

Brice Lambson
JeremyLikness
Jeremy Likness
lajones
lajones
maumar
Maurycy Markowski
roji
Shay Rojansky
smitpatel
Smit Patel

Thank you to our contributors!

A big thank you to the following community members who have already contributed code or documentation to the EF Core 5 release!

aevitas
aevitas
alaatm
Alaa Masoud
aleksandar-manukov
Aleksandar Manukov
amrbadawy
Amr Badawy
AnthonyMonterrosa
Anthony Monterrosa
bbrandt
Ben Brandt
benmccallum
Ben McCallum
ccjx
Clarence Cai
CGijbels
Christophe Gijbels
cincuranet
Jiri Cincura
Costo
Vincent Costel
dshuvaev
Dmitry Shuvaev
EricStG
Eric St-Georges
ErikEJ
Erik Ejlskov Jensen
gravbox
Christopher Davis
ivaylokenov
Ivaylo Kenov
jfoshee
Jacob Foshee
jmzagorski
Jeremy Zagorski
jviau
Jacob Viau
knom
Max K.
lohoris-crane
lohoris-crane
loic-sharma
Loรฏc Sharma
lokalmatador
lokalmatador
mariusGundersen
Marius Gundersen
Marusyk
Roman Marusyk
matthiaslischka
Matthias Lischka
MaxG117
MaxG117
MHDuke
MHDuke
mikes-gh
Mike Surcouf
Muppets
Neil Bostrom
nmichels
Nรญcolas Michels
OOberoi
Obi Oberoi
orionstudt
Josh Studt
ozantopal
Ozan Topal
pmiddleton
Paul Middleton
prog-rajkamal
Raj
ptjhuang
Peter Huang
ralmsdeveloper
Rafael Almeida Santos
redoz
Patrik Husfloen
rmarskell
Richard Marskell
sguitardude
sguitardude
SimpleSamples
Sam Hobbs
svengeance
Sven
VladDragnea
Vlad
vslee
vslee
WeihanLi
liweihan
Youssef1313
Youssef Victor
1iveowl
1iveowl
thomaslevesque
Thomas Levesque
akovac35
Aleksander Kovaฤ
leotsarev
Leonid Tsarev
kostat
Konstantin Triger

The post Announcing Entity Framework Core 5.0 Preview 2 appeared first on .NET Blog.

...



๐Ÿ“Œ Announcing Entity Framework Core 3.0 Preview 6 and Entity Framework 6.3 Preview 6


๐Ÿ“ˆ 65.54 Punkte

๐Ÿ“Œ Announcing Entity Framework Core 3.0 Preview 7 and Entity Framework 6.3 Preview 7


๐Ÿ“ˆ 65.54 Punkte

๐Ÿ“Œ Announcing Entity Framework Core 3.0 Preview 8 and Entity Framework 6.3 Preview 8


๐Ÿ“ˆ 65.54 Punkte

๐Ÿ“Œ Announcing Entity Framework Core 3.0 Preview 9 and Entity Framework 6.3 Preview 9


๐Ÿ“ˆ 65.54 Punkte

๐Ÿ“Œ Announcing Entity Framework Core 3.0 and Entity Framework 6.3 General Availability


๐Ÿ“ˆ 51.65 Punkte

๐Ÿ“Œ Announcing Entity Framework Core 3.1 and Entity Framework 6.4


๐Ÿ“ˆ 51.65 Punkte

๐Ÿ“Œ Announcing Entity Framework Core 5.0 Preview 1


๐Ÿ“ˆ 41.39 Punkte

๐Ÿ“Œ Announcing Entity Framework Core 5.0 Preview 2


๐Ÿ“ˆ 41.39 Punkte

๐Ÿ“Œ Announcing Entity Framework Core 5.0 Preview 4


๐Ÿ“ˆ 41.39 Punkte

๐Ÿ“Œ Announcing Entity Framework 6.3 Preview with .NET Core Support


๐Ÿ“ˆ 41.39 Punkte

๐Ÿ“Œ Announcing Entity Framework 6.3 Preview with .NET Core Support


๐Ÿ“ˆ 41.39 Punkte

๐Ÿ“Œ Release Candidate builds of Entity Framework Core 3.0 and Entity Framework 6.3 are now available


๐Ÿ“ˆ 40.67 Punkte

๐Ÿ“Œ .NET Core, ASP.NET Core und Entity Framework Core 2.1 sind fertig


๐Ÿ“ˆ 35.99 Punkte

๐Ÿ“Œ Announcing Entity Framework Core 2.2


๐Ÿ“ˆ 34.44 Punkte

๐Ÿ“Œ Jetzt testen: Entity Framework Core 2.2 Preview 3


๐Ÿ“ˆ 30.41 Punkte

๐Ÿ“Œ Set up .NET Core Web API With Entity Framework Core


๐Ÿ“ˆ 29.73 Punkte

๐Ÿ“Œ Announcing .NET Core 3 Preview 1 and Open Sourcing Windows Desktop Frameworks


๐Ÿ“ˆ 24.18 Punkte

๐Ÿ“Œ Announcing .NET Core 3.0 Preview 6


๐Ÿ“ˆ 24.18 Punkte

๐Ÿ“Œ Announcing .NET Core 3.0 Preview 7


๐Ÿ“ˆ 24.18 Punkte

๐Ÿ“Œ Announcing .NET Core 3.0 Preview 8


๐Ÿ“ˆ 24.18 Punkte

๐Ÿ“Œ Announcing .NET Core 3.0 Preview 9


๐Ÿ“ˆ 24.18 Punkte

๐Ÿ“Œ Announcing .NET Core 3.1 Preview 1


๐Ÿ“ˆ 24.18 Punkte

๐Ÿ“Œ Announcing .NET Core 3.1 Preview 2


๐Ÿ“ˆ 24.18 Punkte

๐Ÿ“Œ Announcing .NET Core 3.1 Preview 3


๐Ÿ“ˆ 24.18 Punkte

๐Ÿ“Œ Announcing a Microsoft .NET Core and ASP.NET Core Bug Bounty


๐Ÿ“ˆ 23.5 Punkte

๐Ÿ“Œ Migrating from entity framework 6 to Core


๐Ÿ“ˆ 23.47 Punkte

๐Ÿ“Œ Entity Framework Core 3.0 and beyond


๐Ÿ“ˆ 23.47 Punkte

๐Ÿ“Œ Entity Framework Core Part 2


๐Ÿ“ˆ 23.47 Punkte

๐Ÿ“Œ Entity Framework Core Part 2


๐Ÿ“ˆ 23.47 Punkte

๐Ÿ“Œ Entity Framework Core Part 1


๐Ÿ“ˆ 23.47 Punkte

๐Ÿ“Œ Entity Framework Core Part 1


๐Ÿ“ˆ 23.47 Punkte

๐Ÿ“Œ Migrating EDMX projects to Entity Framework Core | On .NET


๐Ÿ“ˆ 23.47 Punkte

๐Ÿ“Œ Entity Framework Core Part 3


๐Ÿ“ˆ 23.47 Punkte

๐Ÿ“Œ Entity Framework Core Part 5


๐Ÿ“ˆ 23.47 Punkte

๐Ÿ“Œ Entity Framework Core Part 5


๐Ÿ“ˆ 23.47 Punkte











matomo