using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; namespace SqlSugar { public interface IUpdateable where T : class, new() { UpdateBuilder UpdateBuilder { get; set; } int ExecuteCommand(); bool ExecuteCommandHasChange(); Task ExecuteCommandAsync(); Task ExecuteCommandHasChangeAsync(); IUpdateable AS(string tableName); IUpdateable With(string lockString); IUpdateable Where(bool isNoUpdateNull,bool IsOffIdentity = false); IUpdateable Where(Expression> expression); /// /// Non primary key entity update function /// /// /// IUpdateable WhereColumns(Expression> columns); IUpdateable UpdateColumns(Expression> columns); IUpdateable UpdateColumns(Expression> columns); IUpdateable UpdateColumns(Func updateColumMethod); IUpdateable UpdateColumns(Expression> columns); IUpdateable IgnoreColumns(Expression> columns); IUpdateable IgnoreColumns(Func ignoreColumMethod); IUpdateable ReSetValue(Expression> setValueExpression); IUpdateable RemoveDataCache(); KeyValuePair> ToSql(); } }