Update Gbase dbfirst

This commit is contained in:
sunkaixuan
2022-08-28 17:55:59 +08:00
parent 5b79f9badb
commit 92e9feb305
3 changed files with 59 additions and 15 deletions

View File

@@ -70,14 +70,8 @@ namespace OrmTest
//db.DbMaintenance.CreateDatabase();
//Use db query
var dt = db.Ado.GetDataTable(@"
select
trim(a.tabname) as name,
trim(b.comments) as comment
from systables a
left join syscomments b on b.tabname = a.tabname
where a.tabtype in ('T', 'V') and not (a.tabname like 'sys%') AND a.tabname <>'dual'");
var dt2= db.Ado.GetDataReader("select * from order").GetSchemaTable();
//Create tables
db.CodeFirst.InitTables(typeof(OrderItem),typeof(Order));

View File

@@ -14,6 +14,7 @@ namespace GbaseTest
Demo2_Updateable.Init();
Demo7_Ado.Init();
DemoE_CodeFirst.Init();
DemoD_DbFirst.Init();
Console.WriteLine("Hello World!");
}
}