Add db.CodeFirst.GetDifferenceTables(types)

This commit is contained in:
sunkaixuan
2022-05-05 21:39:31 +08:00
parent 15a6149867
commit 435b889ff2
5 changed files with 199 additions and 0 deletions

View File

@@ -72,9 +72,13 @@ namespace OrmTest
Db.CodeFirst.InitTables<UnitCodeFirst131>();
Db.Insertable(new UnitCodeFirst131() { Id = 1 }).ExecuteCommand();
Db.CodeFirst.InitTables<UNITCODEFIRST131>();
var diffInfo = db.CodeFirst.GetDifferenceTables(typeof(UNITCOdEFIRST131)).ToDiffString();
db.CodeFirst.InitTables<UNITCOdEFIRST131>();
var diffInfo2 = db.CodeFirst.GetDifferenceTables(typeof(UNITCODEFIRST131)).ToDiffString();
Db.CodeFirst.InitTables<UNITCOdEFIRST131>();
Db.CodeFirst.InitTables<UnitTableUserName>();
db.CodeFirst.InitTables<UnitTablename>();
}
public class UnitCodeFirst131
{