Browse Source

-

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
71428315c0
  1. 2
      OrmTest/UnitTest/Mapping .cs
  2. 2
      SqlSugar/Entities/ConnectionConfig.cs
  3. 2
      SqlSugar/SqlSugarAccessory.cs
  4. 4
      SqlSugar/SqlSugarClient.cs

2
OrmTest/UnitTest/Mapping .cs

@ -39,7 +39,7 @@ namespace OrmTest.UnitTest
public SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new AttribuiteCofnig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true, EntityNamespace= "OrmTest.Models" });
SqlSugarClient db = new SqlSugarClient(new AttribuiteConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true, EntityNamespace= "OrmTest.Models" });
return db;
}
}

2
SqlSugar/Entities/ConnectionConfig.cs

@ -19,7 +19,7 @@ namespace SqlSugar
public bool IsAutoCloseConnection { get; set; }
}
public class AttribuiteCofnig : IConnectionConfig
public class AttribuiteConfig : IConnectionConfig
{
public string EntityNamespace { get; set; }
public string DbType { get; set; }

2
SqlSugar/SqlSugarAccessory.cs

@ -30,7 +30,7 @@ namespace SqlSugar
protected void InitConstructor()
{
this.ContextID = Guid.NewGuid();
if (this.CurrentConnectionConfig is AttribuiteCofnig)
if (this.CurrentConnectionConfig is AttribuiteConfig)
{
string cacheKey = "Context.InitAttributeMappingTables";
CacheFactory.Action<Tuple<MappingTableList, MappingColumnList, IgnoreComumnList>>(cacheKey,

4
SqlSugar/SqlSugarClient.cs

@ -40,7 +40,7 @@ namespace SqlSugar
/// If you do not have system table permissions, use this
/// </summary>
/// <param name="config"></param>
public SqlSugarClient(AttribuiteCofnig config)
public SqlSugarClient(AttribuiteConfig config)
{
base.Context = this;
base.CurrentConnectionConfig = config;
@ -69,7 +69,7 @@ namespace SqlSugar
/// </summary>
/// <param name="masterConnectionConfig"></param>
/// <param name="slaveConnectionConfigs"></param>
public SqlSugarClient(AttribuiteCofnig masterConnectionConfig, IConnectionConfig[] slaveConnectionConfigs)
public SqlSugarClient(AttribuiteConfig masterConnectionConfig, IConnectionConfig[] slaveConnectionConfigs)
{
base.Context = this;
base.CurrentConnectionConfig = masterConnectionConfig;

Loading…
Cancel
Save