This commit is contained in:
sunkaixuan
2017-05-28 20:56:45 +08:00
parent 750933e320
commit 2a97c87085
5 changed files with 104 additions and 0 deletions

View File

@@ -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();
}
}
}

View 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; }
}
}

View 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
}
}

View File

@@ -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();
}
}

View File

@@ -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" />