Skip to content

RushuiGuan/efcore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

124 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

A set of libraries help with setup of efcore for sql server and postgresql

Prerequisite

Dotnet Compiler version 4.12.0 or higher

Albatross.EFCore.CodeGen - an integrated part of the library that uses Roslyn for code generation takes on the dependency of Microsoft.CodeAnalysis.CSharp version 4.12.0, which in term requires the compiler version 4.12.0 or above. The requirement is met with dotnet SDK version 9 or above or with the latest version of visual studio. If dotnet SDK 8 is used with Console, VSCode or JetBrain Rider, the compiler version by default would be 4.11.0 or below. It can be updated at the project level by referencing the Microsoft.Net.Compilers.Toolset version 4.12.0 or above in the project file. The following code snippet shows how to do that.

<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="4.12.0">
	<PrivateAssets>all</PrivateAssets>
	<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

Libraries

Name Description
Albatross.EFCore The base library that help constructs dbcontext and entity mapping NuGet Version
Albatross.EFCore.Admin The base library that help constructs an efcore admin project NuGet Version
Albatross.EFCore.CodeGen A dev dependency for Albatross.EFCore. It uses rosyln code generator to create and register entity model builders NuGet Version
Albatross.EFCore.PostgreSQL Contains additional setup for postgresql NuGet Version
Albatross.EFCore.SqlServer Contains additional setup for sql server NuGet Version

Releases

Packages

Contributors

Languages