This commit is contained in:
sunkaixuan
2017-04-09 14:39:08 +08:00
parent 9ade137290
commit 40f93b2109
17 changed files with 219 additions and 56 deletions

View File

@@ -14,12 +14,9 @@ namespace OrmTest.Models
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "ID")]
public int Id { get; set; }
public string Name { get; set; }
[SugarColumn(IsIgnore = true)]
public int SchoolId { get; set; }
public DateTime CreateTime { get; set; }
[SugarColumn(MappingKeys = "id,SchoolId")]
public virtual School School { get; set; }
[SugarColumn(IsIgnore=true)]
public int TestId { get; set; }
}
}