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.

23 lines
1.1 KiB

2 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. namespace SqlSugar
  4. {
  5. public partial interface IDbFirst
  6. {
  7. SqlSugarClient Context { get; set; }
  8. IDbFirst SettingClassTemplate(Func<string, string> func);
  9. IDbFirst SettingClassDescriptionTemplate(Func<string, string> func);
  10. IDbFirst SettingPropertyTemplate(Func<string, string> func);
  11. IDbFirst SettingPropertyDescriptionTemplate(Func<string, string> func);
  12. IDbFirst SettingConstructorTemplate(Func<string, string> func);
  13. IDbFirst SettingNamespaceTemplate(Func<string, string> func);
  14. IDbFirst IsCreateAttribute(bool isCreateAttribute = true);
  15. IDbFirst IsCreateDefaultValue(bool isCreateDefaultValue=true);
  16. IDbFirst Where(params string[] objectNames);
  17. IDbFirst Where(Func<string,bool> func);
  18. IDbFirst Where(DbObjectType dbObjectType);
  19. void CreateClassFile(string directoryPath, string nameSpace = "Models");
  20. Dictionary<string, string> ToClassStringList(string nameSpace = "Models");
  21. void Init();
  22. }
  23. }