mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-02-15 21:06:32 +08:00
解决.NET 4.5与EF6 DatabaseGeneratedOption冲突问题
This commit is contained in:
@@ -11,9 +11,6 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.Id)
|
||||
.HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
|
||||
|
||||
this.Property(t => t.Account)
|
||||
.IsRequired()
|
||||
|
||||
Reference in New Issue
Block a user