CodeFirst Entity Add DataType

This commit is contained in:
sunkaixuan
2017-07-03 02:07:35 +08:00
parent bdf758c16f
commit 7b49bd15db
5 changed files with 21 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ namespace OrmTest.Demo
[SugarColumn(IsNullable = true,Length =10)]
public string IsOk { get; set; }
public Guid Guid { get; set; }
[SugarColumn(ColumnDataType ="int")]
public decimal Decimal { get; set; }
[SugarColumn(IsNullable = true)]
public DateTime? DateTime { get; set; }