mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update sqlite
This commit is contained in:
parent
f58eeef924
commit
2862cb83b2
@ -7,6 +7,7 @@ namespace SqlSugar
|
||||
{
|
||||
public class SqliteUpdateBuilder : UpdateBuilder
|
||||
{
|
||||
public override string ReSetValueBySqlExpListType { get; set; }="sqlite";
|
||||
protected override string TomultipleSqlString(List<IGrouping<int, DbColumnInfo>> groupList)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
@ -55,6 +55,15 @@ namespace OrmTest
|
||||
var result6 = db.Updateable(updateObjs).WhereColumns(it => new { it.Id }).ExecuteCommand();//update List<Class> by id
|
||||
|
||||
|
||||
var result67 =
|
||||
db.Updateable(updateObjs)
|
||||
.PublicSetColumns(it => it.Price, it => it.Price + 1)
|
||||
.ExecuteCommand();
|
||||
|
||||
var result68 =
|
||||
db.Updateable(updateObjs.First())
|
||||
.PublicSetColumns(it => it.Price, it => it.Price + 1)
|
||||
.ExecuteCommand();
|
||||
|
||||
|
||||
/*** 2.by expression ***/
|
||||
|
Loading…
Reference in New Issue
Block a user