mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-26 13:43:10 +08:00
Add DbFirst
This commit is contained in:
@@ -37,10 +37,27 @@ namespace SqlSugar
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public IDbFirst SettingNamespaceTemplate(Func<string> func)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public IDbFirst SettingPropertyTemplate(Func<string> func)
|
||||
{
|
||||
|
||||
throw new NotImplementedException();
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region Setting Content
|
||||
public IDbFirst IsCreateAttribute(bool isCreateAttribute = true)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public IDbFirst IsCreateDefaultValue(bool isCreateDefaultValue = true)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -58,7 +75,7 @@ namespace SqlSugar
|
||||
public IDbFirst Where(params string[] objectNames)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
public void ToClassStringList()
|
||||
|
||||
17
SqlSugar/Abstract/DbFirstProvider/DefaultTemplate.cs
Normal file
17
SqlSugar/Abstract/DbFirstProvider/DefaultTemplate.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace SqlSugar.Abstract.DbFirstProvider
|
||||
{
|
||||
public class DefaultTemplate
|
||||
{
|
||||
public static string ClassTemplate { get; set; }
|
||||
public static string ClassDescriptionTemplate { get; set; }
|
||||
public static string PropertyTemplate { get; set; }
|
||||
public static string PropertyDescriptionTemplate { get; set; }
|
||||
public static string ConstructorTemplate { get; set; }
|
||||
public static string NamespaceTemplate { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,9 @@ namespace SqlSugar
|
||||
IDbFirst SettingPropertyTemplate(Func<string> func);
|
||||
IDbFirst SettingPropertyDescriptionTemplate(Func<string> func);
|
||||
IDbFirst SettingConstructorTemplate(Func<string> func);
|
||||
IDbFirst SettingNamespaceTemplate(Func<string> func);
|
||||
IDbFirst IsCreateAttribute(bool isCreateAttribute = true);
|
||||
IDbFirst IsCreateDefaultValue(bool isCreateDefaultValue=true);
|
||||
IDbFirst Where(params string[] objectNames);
|
||||
IDbFirst Where(Func<string,bool> func);
|
||||
IDbFirst Where(DbObjectType dbObjectType);
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
<Compile Include="Abstract\DbBindProvider\IDataReaderEntityBuilder.cs" />
|
||||
<Compile Include="Abstract\DbBindProvider\IDataRecordExtensions.cs" />
|
||||
<Compile Include="Abstract\DbFirstProvider\DbFirstProvider.cs" />
|
||||
<Compile Include="Abstract\DbFirstProvider\DefaultTemplate.cs" />
|
||||
<Compile Include="Abstract\DbMaintenanceProvider\DbMaintenanceProvider.cs" />
|
||||
<Compile Include="Abstract\AdoProvider\AdoProvider.cs" />
|
||||
<Compile Include="Abstract\EntityProvider\EntityProvider.cs" />
|
||||
|
||||
Reference in New Issue
Block a user