ICodeFirst.cs 1.0 KB

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SqlSugar
  6. {
  7. public partial interface ICodeFirst
  8. {
  9. SqlSugarProvider Context { get; set; }
  10. ICodeFirst BackupTable(int maxBackupDataRows = int.MaxValue);
  11. ICodeFirst SetStringDefaultLength(int length);
  12. ICodeFirst As(Type type,string newTableName);
  13. ICodeFirst As<T>(string newTableName);
  14. void InitTables(string entitiesNamespace);
  15. void InitTables(string[] entitiesNamespaces);
  16. void InitTables(params Type[] entityTypes);
  17. void InitTablesWithAttr(params Type[] entityTypes);
  18. void InitTables(Type entityType);
  19. void InitTables<T>();
  20. void InitTables<T, T2>();
  21. void InitTables<T, T2, T3>();
  22. void InitTables<T, T2, T3, T4>();
  23. void InitTables<T, T2, T3, T4,T5>();
  24. SplitCodeFirstProvider SplitTables();
  25. TableDifferenceProvider GetDifferenceTables<T>();
  26. TableDifferenceProvider GetDifferenceTables(params Type[] types);
  27. }
  28. }