Info
Version: | 1.1.1 |
Author(s): | Azrng |
Last Update: | Tuesday, December 15, 2020 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/Common.Entity |
Install
Install-Package Common.Entity
dotnet add package Common.Entity
paket add Common.Entity
Common.Entity Download (Unzip the "nupkg" after downloading)
Dependencies
net5.0
- IdHelper(>= 1.4.1)
- Microsoft.EntityFrameworkCore.Relational(>= 5.0.0)
- IdHelper(>= 1.4.1)
- Microsoft.EntityFrameworkCore.Relational(>= 3.1.9)
1.Statrup的ConfigureServices方法添加services.AddAutoGenerationId();
2.继承:IdentityEntity、IdentityOperatorEntity、IdentityOperatorStatusEntity
3.模型配置继承:EntityTypeConfigurationIdentity、EntityTypeConfigurationIdentityOperator、EntityTypeConfigurationIdentityOperatorStatus.