Update demo

This commit is contained in:
skx 2021-02-04 16:32:10 +08:00
parent 6436e4e9e4
commit e2184a671b
5 changed files with 5 additions and 5 deletions

View File

@ -98,7 +98,7 @@ namespace OrmTest
db.Updateable(updateObj).With(SqlWith.UpdLock).ExecuteCommand();
//Where Sql
db.Updateable(updateObj).Where("id=@x", new { x = 1 }).ExecuteCommand();
//db.Updateable(updateObj).Where("id=@x", new { x = 1 }).ExecuteCommand();
Console.WriteLine("#### Updateable End ####");
}

View File

@ -98,7 +98,7 @@ namespace OrmTest
db.Updateable(updateObj).With(SqlWith.UpdLock).ExecuteCommand();
//Where Sql
db.Updateable(updateObj).Where("id=@x", new { x = "1" }).ExecuteCommand();
//db.Updateable(updateObj).Where("id=@x", new { x = "1" }).ExecuteCommand();
Console.WriteLine("#### Updateable End ####");
}

View File

@ -98,7 +98,7 @@ namespace OrmTest
db.Updateable(updateObj).With(SqlWith.UpdLock).ExecuteCommand();
//Where Sql
db.Updateable(updateObj).Where("id=@x", new { x = "1" }).ExecuteCommand();
//db.Updateable(updateObj).Where("id=@x", new { x = "1" }).ExecuteCommand();
Console.WriteLine("#### Updateable End ####");
}

View File

@ -101,7 +101,7 @@ namespace OrmTest
db.Updateable(updateObj).With(SqlWith.UpdLock).ExecuteCommand();
//Where Sql
db.Updateable(updateObj).Where("id=@x", new { x = 1 }).ExecuteCommand();
//db.Updateable(updateObj).Where("id=@x", new { x = 1 }).ExecuteCommand();
Console.WriteLine("#### Updateable End ####");
}

View File

@ -98,7 +98,7 @@ namespace OrmTest
db.Updateable(updateObj).With(SqlWith.UpdLock).ExecuteCommand();
//Where Sql
db.Updateable(updateObj).Where("id=@x", new { x = "1" }).ExecuteCommand();
//db.Updateable(updateObj).Where("id=@x", new { x = "1" }).ExecuteCommand();
Console.WriteLine("#### Updateable End ####");
}