diff --git a/SqlSugar/Abstract/DbFirstProvider/DbFirstProvider.cs b/SqlSugar/Abstract/DbFirstProvider/DbFirstProvider.cs index 9d37fa1a2..d066d5ed3 100644 --- a/SqlSugar/Abstract/DbFirstProvider/DbFirstProvider.cs +++ b/SqlSugar/Abstract/DbFirstProvider/DbFirstProvider.cs @@ -7,5 +7,69 @@ namespace SqlSugar public abstract partial class DbFirstProvider : IDbFirst { public virtual SqlSugarClient Context { get; set; } + + public List GetSchemaInfoList + { + get + { + throw new NotImplementedException(); + } + } + + #region Setting Template + public IDbFirst SettingClassDescriptionTemplate(Func func) + { + throw new NotImplementedException(); + } + + public IDbFirst SettingClassTemplate(Func func) + { + throw new NotImplementedException(); + } + + public IDbFirst SettingConstructorTemplate(Func func) + { + throw new NotImplementedException(); + } + + public IDbFirst SettingPropertyDescriptionTemplate(Func func) + { + throw new NotImplementedException(); + } + + public IDbFirst SettingPropertyTemplate(Func func) + { + + throw new NotImplementedException(); + } + #endregion + + #region Where + public IDbFirst Where(DbObjectType dbObjectType) + { + throw new NotImplementedException(); + } + + public IDbFirst Where(Func func) + { + throw new NotImplementedException(); + } + + public IDbFirst Where(params string[] objectNames) + { + throw new NotImplementedException(); + } + #endregion + + public void ToClassStringList() + { + throw new NotImplementedException(); + } + public void CreateClassFile() + { + throw new NotImplementedException(); + } + + } } diff --git a/SqlSugar/Entities/SchemaInfo.cs b/SqlSugar/Entities/SchemaInfo.cs new file mode 100644 index 000000000..53f2b2945 --- /dev/null +++ b/SqlSugar/Entities/SchemaInfo.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace SqlSugar +{ + public class SchemaInfo + { + public string TableName { get; set; } + public string SchemaName { get; set; } + } +} diff --git a/SqlSugar/Enum/DbObjectType.cs b/SqlSugar/Enum/DbObjectType.cs new file mode 100644 index 000000000..affb501b1 --- /dev/null +++ b/SqlSugar/Enum/DbObjectType.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace SqlSugar +{ + public enum DbObjectType + { + Table = 0, + View = 1, + All = 2 + } +} diff --git a/SqlSugar/Interface/IDbFirst.cs b/SqlSugar/Interface/IDbFirst.cs index 536c60f2a..95c1ea527 100644 --- a/SqlSugar/Interface/IDbFirst.cs +++ b/SqlSugar/Interface/IDbFirst.cs @@ -7,5 +7,16 @@ namespace SqlSugar public partial interface IDbFirst { SqlSugarClient Context { get; set; } + IDbFirst SettingClassTemplate(Func func); + IDbFirst SettingClassDescriptionTemplate(Func func); + IDbFirst SettingPropertyTemplate(Func func); + IDbFirst SettingPropertyDescriptionTemplate(Func func); + IDbFirst SettingConstructorTemplate(Func func); + IDbFirst Where(params string[] objectNames); + IDbFirst Where(Func func); + IDbFirst Where(DbObjectType dbObjectType); + List GetSchemaInfoList { get; } + void CreateClassFile(); + void ToClassStringList(); } } diff --git a/SqlSugar/SqlSugar.csproj b/SqlSugar/SqlSugar.csproj index 32051daab..7e006e24e 100644 --- a/SqlSugar/SqlSugar.csproj +++ b/SqlSugar/SqlSugar.csproj @@ -61,6 +61,8 @@ + +