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

2 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq.Expressions;
  4. using System.Threading.Tasks;
  5. namespace SqlSugar
  6. {
  7. public interface IDeleteable<T> where T : class, new()
  8. {
  9. DeleteBuilder DeleteBuilder { get; set; }
  10. int ExecuteCommand();
  11. bool ExecuteCommandHasChange();
  12. Task<int> ExecuteCommandAsync();
  13. Task<bool> ExecuteCommandHasChangeAsync();
  14. IDeleteable<T> AS(string tableName);
  15. IDeleteable<T> With(string lockString);
  16. IDeleteable<T> Where(T deleteObj);
  17. IDeleteable<T> Where(Expression<Func<T, bool>> expression);
  18. IDeleteable<T> Where(List<T> deleteObjs);
  19. IDeleteable<T> In<PkType>(PkType primaryKeyValue);
  20. IDeleteable<T> In<PkType>(PkType[] primaryKeyValues);
  21. IDeleteable<T> In<PkType>(List<PkType> primaryKeyValues);
  22. IDeleteable<T> Where(string whereString,object parameters=null);
  23. IDeleteable<T> Where(string whereString, SugarParameter parameter);
  24. IDeleteable<T> Where(string whereString, SugarParameter[] parameters);
  25. IDeleteable<T> Where(string whereString, List<SugarParameter> parameters);
  26. IDeleteable<T> RemoveDataCache();
  27. KeyValuePair<string, List<SugarParameter>> ToSql();
  28. }
  29. }