using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace SqlSugar { public interface IInsertable { InsertBuilder InsertBuilder { get; set; } int ExecuteCommand(); Task ExecuteCommandAsync(); int ExecuteReturnIdentity(); Task ExecuteReturnIdentityAsync(); T ExecuteReturnEntity(); Task ExecuteReturnEntityAsync(); bool ExecuteCommandIdentityIntoEntity(); Task ExecuteCommandIdentityIntoEntityAsync(); long ExecuteReturnBigIdentity(); Task ExecuteReturnBigIdentityAsync(); IInsertable AS(string tableName); IInsertable With(string lockString); IInsertable InsertColumns(Expression> columns); IInsertable InsertColumns(params string[] columns); IInsertable IgnoreColumns(Expression> columns); IInsertable IgnoreColumns(params string[]columns); IInsertable IgnoreColumns(bool ignoreNullColumn, bool isOffIdentity = false); IInsertable EnableDiffLogEvent(object businessData = null); IInsertable RemoveDataCache(); KeyValuePair> ToSql(); void AddQueue(); #region Obsolete [Obsolete("use IgnoreColumns(string[] columns")] IInsertable IgnoreColumns(Func ignoreColumMethod); [Obsolete("use InsertColumns(string[] columns")] IInsertable InsertColumns(Func insertColumMethod); [Obsolete("use IgnoreColumns(bool isNoInsertNull, bool isOffIdentity = false)")] IInsertable Where(bool ignoreNullColumn, bool isOffIdentity = false); #endregion } }