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.

31 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 IInsertable<T>
  8. {
  9. InsertBuilder InsertBuilder { get; set; }
  10. int ExecuteCommand();
  11. Task<int> ExecuteCommandAsync();
  12. int ExecuteReturnIdentity();
  13. Task<int> ExecuteReturnIdentityAsync();
  14. T ExecuteReturnEntity();
  15. Task<T> ExecuteReturnEntityAsync();
  16. bool ExecuteCommandIdentityIntoEntity();
  17. Task<bool> ExecuteCommandIdentityIntoEntityAsync();
  18. long ExecuteReturnBigIdentity();
  19. Task<long> ExecuteReturnBigIdentityAsync();
  20. IInsertable<T> AS(string tableName);
  21. IInsertable<T> With(string lockString);
  22. IInsertable<T> InsertColumns(Expression<Func<T, object>> columns);
  23. IInsertable<T> InsertColumns(Func<string, bool> insertColumMethod);
  24. IInsertable<T> IgnoreColumns(Expression<Func<T, object>> columns);
  25. IInsertable<T> IgnoreColumns(Func<string,bool> ignoreColumMethod);
  26. IInsertable<T> Where(bool isInsertNull, bool isOffIdentity = false);
  27. IInsertable<T> RemoveDataCache();
  28. KeyValuePair<string, List<SugarParameter>> ToSql();
  29. }
  30. }