Code First

This commit is contained in:
sunkaixuan
2017-06-17 22:07:51 +08:00
parent 58d5e9e8d2
commit d8b24344e7
4 changed files with 20 additions and 29 deletions

View File

@@ -10,7 +10,7 @@ namespace OrmTest.Demo
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
[SugarColumn(Length = 40)]
[SugarColumn(Length = 100)]
public string Name { get; set; }
[SugarColumn(IsNullable = true)]
public bool IsOk { get; set; }