mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-02-17 05:48:13 +08:00
解决.NET 4.5与EF6 DatabaseGeneratedOption冲突问题
This commit is contained in:
@@ -11,10 +11,6 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.Id)
|
||||
.HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("UserModule");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
|
||||
Reference in New Issue
Block a user