Update PgSql

This commit is contained in:
sunkaixuan
2018-12-02 23:42:16 +08:00
parent 42f0c45ce0
commit 822641f120
5 changed files with 9 additions and 7 deletions

View File

@@ -13,9 +13,11 @@ namespace OrmTest.Models
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "ID")]
public int Id { get; set; }
[SugarColumn(IsNullable =true)]
public int? SchoolId { get; set; }
[SugarColumn(Length =50)]
[SugarColumn(Length =50,IsNullable =true)]
public string Name { get; set; }
[SugarColumn(IsNullable = true)]
public DateTime? CreateTime { get; set; }
[SugarColumn(IsIgnore=true)]
public int TestId { get; set; }