using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading; using System.Threading.Tasks; namespace SqlSugar { public partial interface IInsertable where T :class,new() { InsertBuilder InsertBuilder { get; set; } int ExecuteCommand(); Task ExecuteCommandAsync(); Task ExecuteCommandAsync(CancellationToken token); List ExecuteReturnPkList(); Task> ExecuteReturnPkListAsync(); long ExecuteReturnSnowflakeId(); List ExecuteReturnSnowflakeIdList(); Task ExecuteReturnSnowflakeIdAsync(); Task ExecuteReturnSnowflakeIdAsync(CancellationToken token); Task> ExecuteReturnSnowflakeIdListAsync(); Task> ExecuteReturnSnowflakeIdListAsync(CancellationToken token); int ExecuteReturnIdentity(); Task ExecuteReturnIdentityAsync(); Task ExecuteReturnIdentityAsync(CancellationToken token); T ExecuteReturnEntity(); T ExecuteReturnEntity(bool isIncludesAllFirstLayer); Task ExecuteReturnEntityAsync(); Task ExecuteReturnEntityAsync(bool isIncludesAllFirstLayer); bool ExecuteCommandIdentityIntoEntity(); Task ExecuteCommandIdentityIntoEntityAsync(); long ExecuteReturnBigIdentity(); Task ExecuteReturnBigIdentityAsync(); Task ExecuteReturnBigIdentityAsync(CancellationToken token); IInsertable AS(string tableName); IInsertable AsType(Type tableNameType); 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 IgnoreColumnsNull(bool isIgnoreNull = true); ISubInsertable AddSubList(Expression> subForeignKey); ISubInsertable AddSubList(Expression> tree); IParameterInsertable UseParameter(); IInsertable CallEntityMethod(Expression> method); IInsertable EnableDiffLogEvent(object businessData = null); IInsertable EnableDiffLogEventIF(bool isDiffLogEvent, object businessData=null); IInsertable RemoveDataCache(); IInsertable RemoveDataCache(string likeString); KeyValuePair> ToSql(); string ToSqlString(); SqlServerBlukCopy UseSqlServer(); MySqlBlukCopy UseMySql(); OracleBlukCopy UseOracle(); SplitInsertable SplitTable(); SplitInsertable SplitTable(SplitType splitType); void AddQueue(); IInsertable MySqlIgnore(); IInsertable OffIdentity(); IInsertable OffIdentity(bool isSetOn); InsertablePage PageSize(int pageSize); } }