This commit is contained in:
sunkaixuan
2017-05-22 13:16:54 +08:00
parent 0e7798eca8
commit bcfc12814f
4 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ namespace OrmTest.UnitTest
public SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new AttrbuitesCofnig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true, EntityNamespace= "OrmTest.Models" });
SqlSugarClient db = new SqlSugarClient(new AttribuiteCofnig() { 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 AttrbuitesCofnig : IConnectionConfig
public class AttribuiteCofnig : IConnectionConfig
{
public string EntityNamespace { get; set; }
public string DbType { get; set; }

View File

@@ -30,7 +30,7 @@ namespace SqlSugar
protected void InitConstructor()
{
this.ContextID = Guid.NewGuid();
if (this.CurrentConnectionConfig is AttrbuitesCofnig)
if (this.CurrentConnectionConfig is AttribuiteCofnig)
{
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(AttrbuitesCofnig config)
public SqlSugarClient(AttribuiteCofnig config)
{
base.Context = this;
base.CurrentConnectionConfig = config;
@@ -69,7 +69,7 @@ namespace SqlSugar
/// </summary>
/// <param name="masterConnectionConfig"></param>
/// <param name="slaveConnectionConfigs"></param>
public SqlSugarClient(AttrbuitesCofnig masterConnectionConfig, IConnectionConfig[] slaveConnectionConfigs)
public SqlSugarClient(AttribuiteCofnig masterConnectionConfig, IConnectionConfig[] slaveConnectionConfigs)
{
base.Context = this;
base.CurrentConnectionConfig = masterConnectionConfig;