Update Code First

This commit is contained in:
SUNKAIXUAN
2021-03-11 21:48:45 +08:00
parent 75f8c547db
commit 8239dc91ac
2 changed files with 17 additions and 0 deletions

View File

@@ -21,6 +21,17 @@ namespace OrmTest
Console.WriteLine(s);
};
Db.CodeFirst.InitTables<UnitCodeFirstpks3>();
Db.CodeFirst.InitTables<UnitCodeFirstpks32>();
}
[SqlSugar.SugarTable("[dbo].[UnitCodeFirstpks3aaa122]")]
public class UnitCodeFirstpks32
{
public int id { get; set; }
public string name2 { get; set; }
}
[SqlSugar.SugarTable("UnitCodeFirstpks31","备注" )]
public class UnitCodeFirstpks3