You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks;
namespace SqlSugar { public interface IUpdateable<T> where T : class, new() { UpdateBuilder UpdateBuilder { get; set; } int ExecuteCommand(); bool ExecuteCommandHasChange(); Task<int> ExecuteCommandAsync(); Task<bool> ExecuteCommandHasChangeAsync(); IUpdateable<T> AS(string tableName); IUpdateable<T> With(string lockString); IUpdateable<T> Where(bool isNoUpdateNull,bool IsOffIdentity = false); IUpdateable<T> Where(Expression<Func<T, bool>> expression); /// <summary>
/// Non primary key entity update function
/// </summary>
/// <param name="columns"></param>
/// <returns></returns>
IUpdateable<T> WhereColumns(Expression<Func<T, object>> columns); IUpdateable<T> UpdateColumns(Expression<Func<T, object>> columns); IUpdateable<T> UpdateColumns(Expression<Func<T, bool>> columns); IUpdateable<T> UpdateColumns(Func<string, bool> updateColumMethod); IUpdateable<T> UpdateColumns(Expression<Func<T, T>> columns); IUpdateable<T> IgnoreColumns(Expression<Func<T, object>> columns); IUpdateable<T> IgnoreColumns(Func<string, bool> ignoreColumMethod); IUpdateable<T> ReSetValue(Expression<Func<T, bool>> setValueExpression); IUpdateable<T> RemoveDataCache(); KeyValuePair<string,List<SugarParameter>> ToSql(); } }
|