A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
The minimal requirement for using new() is Visual Studio 2019 setup for C#9. When creating a new project in VS2019 the default Framework is .NET Core 5. To get to C#9, double click the project file in solution explorer and make sure LangVersion as shown below. If you use latest rather than 9 and have .NET 5 and 6, this will not work unless you enable experimental features and even so there are complications so use 9 for LangVersion.
Note if you go to VS2022 you can not build for x86, only x64.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<LangVersion>9.0</LangVersion>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>
If using windows forms, <TargetFramework>net5.0-windows</TargetFramework>