mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update Demo
This commit is contained in:
parent
cb954fbf4b
commit
f338385485
@ -8,17 +8,17 @@ namespace OrmTest
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
// OldTestMain.Init();
|
||||
//OldTestMain.Init();
|
||||
|
||||
//Demo
|
||||
//Demo0_SqlSugarClient.Init();
|
||||
//Demo1_Queryable.Init();
|
||||
//Demo2_Updateable.Init();
|
||||
//Democ_GobalFilter.Init();
|
||||
//DemoD_DbFirst.Init();
|
||||
//DemoE_CodeFirst.Init();
|
||||
//Demo5_SqlQueryable.Init();
|
||||
//Demo6_Queue.Init();
|
||||
Demo0_SqlSugarClient.Init();
|
||||
Demo1_Queryable.Init();
|
||||
Demo2_Updateable.Init();
|
||||
Democ_GobalFilter.Init();
|
||||
DemoD_DbFirst.Init();
|
||||
DemoE_CodeFirst.Init();
|
||||
Demo5_SqlQueryable.Init();
|
||||
Demo6_Queue.Init();
|
||||
|
||||
//Unit test
|
||||
NewUnitTest.Init();
|
||||
|
@ -18,8 +18,11 @@ namespace OrmTest
|
||||
Db.CodeFirst.InitTables(typeof(BoolTest));
|
||||
var x = new BoolTest();
|
||||
Db.Updateable<BoolTest>().SetColumns(it => new BoolTest() { BoolValue = !it.BoolValue }).Where(it=>it.Id==1).ExecuteCommand();
|
||||
|
||||
Db.Updateable<BoolTest>().SetColumns(it => it.BoolValue == !it.BoolValue ).Where(it=>it.Id==1).ExecuteCommand();
|
||||
Db.Updateable<BoolTest>().SetColumns(it => new BoolTest() { BoolValue = x.BoolValue }).Where(it => it.Id == 1).ExecuteCommand();
|
||||
Db.Updateable<BoolTest>().SetColumns(it => it.BoolValue == x.BoolValue).Where(it => it.Id == 1).ExecuteCommand();
|
||||
Db.Updateable<BoolTest>().SetColumns(it => new BoolTest() { BoolValue = !x.BoolValue }).Where(it => it.Id == 1).ExecuteCommand();
|
||||
Db.Updateable<BoolTest>().SetColumns(it => it.BoolValue == !x.BoolValue).Where(it => it.Id == 1).ExecuteCommand();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user