SqlSugar源码学习

序言

SqlSugar16大功能

SqlSugar查询特色

public virtual IInsertable<T> Insertable<T>(dynamic insertDynamicObject) where T : class, new()

var result = Ado.ExecuteCommand(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());

LOCK

 public partial class SqlWith
    {
        public const string NoLock = "WITH(NOLOCK) ";
        public const string HoldLock = "WITH(HOLDLOCK)";
        public const string PagLock = "WITH(PAGLOCK)";
        public const string ReadCommitted = "WITH(READCOMMITTED)";
        public const string TabLockX = "WITH(TABLOCKX)";
        public const string UpdLock = "WITH(UPDLOCK)";
        public const string RowLock = "WITH(ROWLOCK)";
        public const string Null = "Non";
    }

SELECT SCOPE_IDENTITY();

资料

http://www.codeisbug.com/Doc/8

https://github.com/sunkaixuan/SqlSugar

原文地址:https://www.cnblogs.com/cnki/p/12046273.html