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.
30 lines
1.2 KiB
30 lines
1.2 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq.Expressions;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SqlSugar
|
|
{
|
|
public interface IDeleteable<T> where T : class, new()
|
|
{
|
|
DeleteBuilder DeleteBuilder { get; set; }
|
|
int ExecuteCommand();
|
|
bool ExecuteCommandHasChange();
|
|
Task<int> ExecuteCommandAsync();
|
|
Task<bool> ExecuteCommandHasChangeAsync();
|
|
IDeleteable<T> AS(string tableName);
|
|
IDeleteable<T> With(string lockString);
|
|
IDeleteable<T> Where(T deleteObj);
|
|
IDeleteable<T> Where(Expression<Func<T, bool>> expression);
|
|
IDeleteable<T> Where(List<T> deleteObjs);
|
|
IDeleteable<T> In<PkType>(PkType primaryKeyValue);
|
|
IDeleteable<T> In<PkType>(PkType[] primaryKeyValues);
|
|
IDeleteable<T> In<PkType>(List<PkType> primaryKeyValues);
|
|
IDeleteable<T> Where(string whereString,object parameters=null);
|
|
IDeleteable<T> Where(string whereString, SugarParameter parameter);
|
|
IDeleteable<T> Where(string whereString, SugarParameter[] parameters);
|
|
IDeleteable<T> Where(string whereString, List<SugarParameter> parameters);
|
|
IDeleteable<T> RemoveDataCache();
|
|
KeyValuePair<string, List<SugarParameter>> ToSql();
|
|
}
|
|
}
|