调整T4模板,领域模型增加注释

This commit is contained in:
yubaolee
2015-10-27 00:27:05 +08:00
parent 885d444761
commit 4e7f9ad0b3
25 changed files with 1478 additions and 327 deletions

View File

@@ -12,8 +12,6 @@ namespace OpenAuth.Repository.Models.Mapping
this.HasKey(t => t.Id);
// Properties
this.Property(t => t.Id);
// Table & Column Mappings
this.ToTable("ModuleRole");
this.Property(t => t.Id).HasColumnName("Id");

View File

@@ -12,8 +12,6 @@ namespace OpenAuth.Repository.Models.Mapping
this.HasKey(t => t.Id);
// Properties
this.Property(t => t.Id);
// Table & Column Mappings
this.ToTable("PageElementGrant");
this.Property(t => t.Id).HasColumnName("Id");

View File

@@ -11,7 +11,7 @@ namespace OpenAuth.Repository.Models.Mapping
// Primary Key
this.HasKey(t => t.Id);
// Properties
this.Property(t => t.DomId)
.IsRequired()
.HasMaxLength(255);

View File

@@ -11,7 +11,7 @@ namespace OpenAuth.Repository.Models.Mapping
// Primary Key
this.HasKey(t => t.Id);
// Properties
this.Property(t => t.Theme)
.IsRequired()
.HasMaxLength(255);

View File

@@ -11,7 +11,7 @@ namespace OpenAuth.Repository.Models.Mapping
// Primary Key
this.HasKey(t => t.Id);
// Properties
this.Property(t => t.Email)
.IsRequired()
.HasMaxLength(255);

View File

@@ -11,7 +11,7 @@ namespace OpenAuth.Repository.Models.Mapping
// Primary Key
this.HasKey(t => t.Id);
// Properties
this.Property(t => t.Account)
.IsRequired()
.HasMaxLength(255);

View File

@@ -11,6 +11,7 @@ namespace OpenAuth.Repository.Models.Mapping
// Primary Key
this.HasKey(t => t.Id);
// Properties
// Table & Column Mappings
this.ToTable("UserModule");
this.Property(t => t.Id).HasColumnName("Id");

View File

@@ -12,8 +12,6 @@ namespace OpenAuth.Repository.Models.Mapping
this.HasKey(t => t.Id);
// Properties
this.Property(t => t.Id);
// Table & Column Mappings
this.ToTable("UserOrg");
this.Property(t => t.Id).HasColumnName("Id");

View File

@@ -12,8 +12,6 @@ namespace OpenAuth.Repository.Models.Mapping
this.HasKey(t => t.Id);
// Properties
this.Property(t => t.Id);
// Table & Column Mappings
this.ToTable("UserRole");
this.Property(t => t.Id).HasColumnName("Id");