mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
-
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
@@ -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; }
|
||||
|
@@ -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,
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user