mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-26 05:32:53 +08:00
-
This commit is contained in:
@@ -7,5 +7,69 @@ namespace SqlSugar
|
||||
public abstract partial class DbFirstProvider : IDbFirst
|
||||
{
|
||||
public virtual SqlSugarClient Context { get; set; }
|
||||
|
||||
public List<SchemaInfo> GetSchemaInfoList
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
#region Setting Template
|
||||
public IDbFirst SettingClassDescriptionTemplate(Func<string> func)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public IDbFirst SettingClassTemplate(Func<string> func)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public IDbFirst SettingConstructorTemplate(Func<string> func)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public IDbFirst SettingPropertyDescriptionTemplate(Func<string> func)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public IDbFirst SettingPropertyTemplate(Func<string> func)
|
||||
{
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Where
|
||||
public IDbFirst Where(DbObjectType dbObjectType)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public IDbFirst Where(Func<string, bool> 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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
13
SqlSugar/Entities/SchemaInfo.cs
Normal file
13
SqlSugar/Entities/SchemaInfo.cs
Normal file
@@ -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; }
|
||||
}
|
||||
}
|
||||
14
SqlSugar/Enum/DbObjectType.cs
Normal file
14
SqlSugar/Enum/DbObjectType.cs
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -7,5 +7,16 @@ namespace SqlSugar
|
||||
public partial interface IDbFirst
|
||||
{
|
||||
SqlSugarClient Context { get; set; }
|
||||
IDbFirst SettingClassTemplate(Func<string> func);
|
||||
IDbFirst SettingClassDescriptionTemplate(Func<string> func);
|
||||
IDbFirst SettingPropertyTemplate(Func<string> func);
|
||||
IDbFirst SettingPropertyDescriptionTemplate(Func<string> func);
|
||||
IDbFirst SettingConstructorTemplate(Func<string> func);
|
||||
IDbFirst Where(params string[] objectNames);
|
||||
IDbFirst Where(Func<string,bool> func);
|
||||
IDbFirst Where(DbObjectType dbObjectType);
|
||||
List<SchemaInfo> GetSchemaInfoList { get; }
|
||||
void CreateClassFile();
|
||||
void ToClassStringList();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,8 @@
|
||||
<Compile Include="Abstract\InsertableProvider\InsertableProvider.cs" />
|
||||
<Compile Include="Abstract\DeleteProvider\DeleteableProvider.cs" />
|
||||
<Compile Include="Abstract\UpdateProvider\UpdateableProvider.cs" />
|
||||
<Compile Include="Entities\SchemaInfo.cs" />
|
||||
<Compile Include="Enum\DbObjectType.cs" />
|
||||
<Compile Include="Interface\ICacheManager.cs" />
|
||||
<Compile Include="Entities\SugarMessageResult.cs" />
|
||||
<Compile Include="Enum\InitKeyType.cs" />
|
||||
|
||||
Reference in New Issue
Block a user