Skip to content

Releases: DotNetNext/SqlSugar

3.5.1.2

05 Nov 11:34
Compare
Choose a tag to compare

支持了Date

将最底层的SqlHelper的方法全部变成虚方法方便重写

    /// <summary>
    /// 重写SqlSugar底层
    /// </summary>
    public class MySqlSugarClient:SqlSugarClient
    {
        public override System.Data.DataSet GetDataSetAll(string sql, object pars)
        {
            return base.GetDataSetAll(sql, pars);
        }

        public override void BeginTran(System.Data.IsolationLevel iso, string transactionName)
        {
            base.BeginTran(iso, transactionName);
        }

        public override int ExecuteCommand(string sql, object pars)
        {
            return base.ExecuteCommand(sql, pars);
        }
    }

3.5.0.1

30 Oct 11:32
Compare
Choose a tag to compare
3.5.0.1 Pre-release
Pre-release

支持Datime2 类型

3.5

29 Oct 22:12
Compare
Choose a tag to compare
3.5 Pre-release
Pre-release

3.5-3.9.9.9 都为预览版本

3.1.1.8

29 Oct 19:54
Compare
Choose a tag to compare

性能优化:减少了数据库连接时间

3.1.1.7

29 Oct 11:04
Compare
Choose a tag to compare

严谨了所有函数的泛型约束

3.1.1.6

28 Oct 13:57
Compare
Choose a tag to compare

解决了 SqlbuleCopy 函数 特殊环境下导致的时间格式问题

3.1.1.5

28 Oct 13:38
Compare
Choose a tag to compare

拉姆达解析的SQL格式美化

3.1.1.4

25 Oct 17:11
Compare
Choose a tag to compare

1 .禁止更新列和禁止插入列添加了ADD方法

db.AddDisableInsertColumns("name","id");

2.更新字符串加参数

 db.Update<Student>("sch_id=sch_id+1", it => it.id == 1);
db.Update<Student>("sch_id=@sid=1", it => it.id == 1,new {sid=100});

3.SqlBulkCopy SqlBulkReplace 禁止更新列 同名的 BUG

3.1.1.2

22 Oct 05:24
Compare
Choose a tag to compare

1.支持了 list.Contains 以前只支持array.contains
Where(it=>list.Contains(p))

2.解决了ado.net另类写法引起的错误

3.1.0.9

19 Oct 05:14
Compare
Choose a tag to compare

解决了:过滤更新列时,下面这种写法会报错

  db.DisableUpdateColumns= new string[] {"get"}; //不更新 get列
  db.update(student);
public Student class{     '
            public int name{ get; set; }

            private   Student _get;
            public virtual Student get
            {
                get {
                    if (_get==null)
                        _get = DBManager.xxxx(classId);
                    return _get;
                }
            }
}