DotNetNext / SqlSugar

.Net aot ORM Fastest ORM Simple Easy VB.NET Sqlite orm Oracle ORM Mysql Orm 虚谷数据库 postgresql ORm SqlServer oRm 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET5 ORM .NET6 ORM ClickHouse orm QuestDb ,TDengine ORM,OceanBase orm,GaussDB orm ,Tidb orm Object/Relational Mapping
https://www.donet5.com/Home/Doc
MIT License
5.35k stars 1.34k forks source link

SqlSugar初体验之SQLite #913

Closed ohsorry closed 3 years ago

ohsorry commented 3 years ago

多少星的项目都有

lianyitj commented 3 years ago

我也是刚尝试,这个更新所有字段,更新成什么了呢?都给清了?要真有这么问题就太可怕了

DotNetNext commented 3 years ago
public IUpdateable<T> SetColumnsIF(bool isUpdateColumns, Expression<Func<T, bool>> columns)
    {
        ThrowUpdateByObject();
        if (isUpdateColumns)
            SetColumns(columns);
        return this;
    }
    public IUpdateable<T> SetColumnsIF(bool isUpdateColumns, Expression<Func<T, T>> columns)
    {
        ThrowUpdateByObject();
        if (isUpdateColumns)
            SetColumns(columns);
        return this;
    }

自个检查逻辑确认有问题在提出来

DotNetNext commented 3 years ago

保证至少有一列 就没问题

DotNetNext commented 3 years ago

一列没有SQL语句会报错 set 空