This commit is contained in:
sunkaixuan
2017-05-23 09:41:43 +08:00
parent 6ee5748e92
commit f6e0e26d60
6 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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

View File

@@ -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,

View File

@@ -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;