mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 14:15:50 +08:00
-
This commit is contained in:
@@ -39,7 +39,7 @@ namespace OrmTest.UnitTest
|
||||
|
||||
public SqlSugarClient GetInstance()
|
||||
{
|
||||
SqlSugarClient db = new SqlSugarClient(new AttribuiteConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true, EntityNamespace= "OrmTest.Models" });
|
||||
SqlSugarClient db = new SqlSugarClient(new AttributeConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true, EntityNamespace= "OrmTest.Models" });
|
||||
return db;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace SqlSugar
|
||||
public bool IsAutoCloseConnection { get; set; }
|
||||
}
|
||||
|
||||
public class AttribuiteConfig : IConnectionConfig
|
||||
public class AttributeConfig : IConnectionConfig
|
||||
{
|
||||
public string EntityNamespace { get; set; }
|
||||
public string DbType { get; set; }
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
<Compile Include="Realization\SqlServer\Core\SqlBuilder\SqlServerQueryBuilder.cs" />
|
||||
<Compile Include="Realization\SqlServer\SqlServerProvider.cs" />
|
||||
<Compile Include="Realization\SqlServer\Queryable\SqlServerQueryable.cs" />
|
||||
<Compile Include="Entities\DetaultT.cs" />
|
||||
<Compile Include="Entities\SugarDynamic.cs" />
|
||||
<Compile Include="Entities\ConnectionConfig.cs" />
|
||||
<Compile Include="Entities\DbColumnInfo.cs" />
|
||||
<Compile Include="Entities\DbTableInfo.cs" />
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace SqlSugar
|
||||
protected void InitConstructor()
|
||||
{
|
||||
this.ContextID = Guid.NewGuid();
|
||||
if (this.CurrentConnectionConfig is AttribuiteConfig)
|
||||
if (this.CurrentConnectionConfig is AttributeConfig)
|
||||
{
|
||||
string cacheKey = "Context.InitAttributeMappingTables";
|
||||
CacheFactory.Action<Tuple<MappingTableList, MappingColumnList, IgnoreComumnList>>(cacheKey,
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace SqlSugar
|
||||
/// If you do not have system table permissions, use this
|
||||
/// </summary>
|
||||
/// <param name="config"></param>
|
||||
public SqlSugarClient(AttribuiteConfig config)
|
||||
public SqlSugarClient(AttributeConfig config)
|
||||
{
|
||||
base.Context = this;
|
||||
base.CurrentConnectionConfig = config;
|
||||
@@ -69,7 +69,7 @@ namespace SqlSugar
|
||||
/// </summary>
|
||||
/// <param name="masterConnectionConfig"></param>
|
||||
/// <param name="slaveConnectionConfigs"></param>
|
||||
public SqlSugarClient(AttribuiteConfig masterConnectionConfig, IConnectionConfig[] slaveConnectionConfigs)
|
||||
public SqlSugarClient(AttributeConfig masterConnectionConfig, IConnectionConfig[] slaveConnectionConfigs)
|
||||
{
|
||||
base.Context = this;
|
||||
base.CurrentConnectionConfig = masterConnectionConfig;
|
||||
|
||||
Reference in New Issue
Block a user