mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 04:53:45 +08:00
Update demo
This commit is contained in:
Binary file not shown.
@@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugarCore.Kdbndp</id>
|
||||
<version>9.3.6.618</version>
|
||||
<version>9.3.6.711</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据科技</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
@@ -6,7 +6,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="SqlSugarCore.Kdbndp" Version="9.3.6.618" />
|
||||
<PackageReference Include="SqlSugarCore.Kdbndp" Version="9.3.6.711" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@@ -36,7 +36,7 @@ namespace KdbndpTest.SqlServerDemo
|
||||
}
|
||||
|
||||
var yyy = Db.Queryable<Order>().ToList();
|
||||
var xxx=Db.Ado.GetDataTable("select * from information_schema.columns where pg_catalog.UPPER(table_name)=pg_catalog.UPPER('ORDER')\r\n");
|
||||
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'");
|
||||
|
||||
Db.CodeFirst.InitTables<Order>();
|
||||
Db.Insertable(new Order()
|
||||
@@ -46,6 +46,20 @@ namespace KdbndpTest.SqlServerDemo
|
||||
Name="a",
|
||||
Price=1
|
||||
}).ExecuteCommand();
|
||||
Db.Updateable(new Order()
|
||||
{
|
||||
CreateTime = DateTime.Now,
|
||||
CustomId = 1,
|
||||
Name = "a",
|
||||
Price = 1
|
||||
}).ExecuteCommand();
|
||||
Db.Deleteable(new Order()
|
||||
{
|
||||
CreateTime = DateTime.Now,
|
||||
CustomId = 1,
|
||||
Name = "a",
|
||||
Price = 1
|
||||
}).ExecuteCommand();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user