mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update demo
This commit is contained in:
parent
7ac8073e53
commit
a54ff44080
@ -13,4 +13,9 @@
|
||||
<ProjectReference Include="..\SqlSugar\SqlSugar.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="PgSqlDemo\" />
|
||||
<Folder Include="MySqlDemo\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -36,7 +36,7 @@ namespace KdbndpTest.SqlServerDemo
|
||||
}
|
||||
|
||||
var yyy = Db.Queryable<Order>().ToList();
|
||||
var xxx=Db.Ado.GetDataTable(" select sys_class.relname,sys_attribute.attname as colname from \r\n\t sys_constraint inner join sys_class \r\n\t on sys_constraint.conrelid = sys_class.oid \r\n\t inner join sys_attribute on sys_attribute.attrelid = sys_class.oid \r\n\t and sys_attribute.attnum = sys_constraint.conkey{1}\r\n\t inner join sys_type on sys_type.oid = sys_attribute.atttypid\r\n\t where sys_constraint.contype='p'");
|
||||
var xxx=Db.Ado.GetDataTable("select 1 as id");
|
||||
|
||||
Db.CodeFirst.InitTables<Order>();
|
||||
Db.Insertable(new Order()
|
||||
|
Loading…
Reference in New Issue
Block a user