Browse Source

-

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
8b2c3fd122
  1. 2
      OrmTest/Demo/Delete.cs
  2. 2
      OrmTest/Demo/Insert.cs
  3. 2
      OrmTest/Demo/Query.cs
  4. 2
      OrmTest/Demo/Update.cs
  5. 2
      OrmTest/PerformanceTesting/SqlSugarPerformance.cs
  6. 2
      OrmTest/UnitTest/Delete.cs
  7. 2
      OrmTest/UnitTest/Insert.cs
  8. 2
      OrmTest/UnitTest/Query/JoinQuery.cs
  9. 2
      OrmTest/UnitTest/Query/SelectQuery.cs
  10. 2
      OrmTest/UnitTest/Query/SingleQuery.cs
  11. 2
      OrmTest/UnitTest/Setting/AutoClose.cs
  12. 2
      OrmTest/UnitTest/Setting/MapColumn.cs
  13. 2
      OrmTest/UnitTest/Setting/MapTable.cs
  14. 2
      OrmTest/UnitTest/Update.cs
  15. 2
      SqlSugar/Abstract/DbMaintenanceProvider/DbMaintenanceProvider.cs
  16. 2
      SqlSugar/Entities/ConnectionConfig.cs
  17. 6
      SqlSugar/SqlSugarClient.cs

2
OrmTest/Demo/Delete.cs

@ -32,7 +32,7 @@ namespace OrmTest.Demo
public static SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
db.Ado.IsEnableLogEvent = true;
db.Ado.LogEventStarting = (sql, pars) =>
{

2
OrmTest/Demo/Insert.cs

@ -53,7 +53,7 @@ namespace OrmTest.Demo
public static SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
db.Ado.IsEnableLogEvent = true;
db.Ado.LogEventStarting = (sql, pars) =>
{

2
OrmTest/Demo/Query.cs

@ -186,7 +186,7 @@ namespace OrmTest.Demo
public static SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
db.Ado.IsEnableLogEvent = true;
db.Ado.LogEventStarting = (sql, pars) =>
{

2
OrmTest/Demo/Update.cs

@ -47,7 +47,7 @@ namespace OrmTest.Demo
}
public static SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
db.Ado.IsEnableLogEvent = true;
db.Ado.LogEventStarting = (sql, pars) =>
{

2
OrmTest/PerformanceTesting/SqlSugarPerformance.cs

@ -16,7 +16,7 @@ namespace OrmTest.PerformanceTesting
}
public void Select()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig()
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig()
{
ConnectionString = Config.ConnectionString,
DbType = DbType.SqlServer,

2
OrmTest/UnitTest/Delete.cs

@ -55,7 +55,7 @@ namespace OrmTest
public SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
return db;
}
}

2
OrmTest/UnitTest/Insert.cs

@ -118,7 +118,7 @@ INSERT INTO [Student]
public SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
return db;
}
}

2
OrmTest/UnitTest/Query/JoinQuery.cs

@ -71,7 +71,7 @@ namespace OrmTest.UnitTest
public SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer });
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer });
db.Ado.IsEnableLogEvent = true;
db.Ado.LogEventStarting = (sql, pars) =>
{

2
OrmTest/UnitTest/Query/SelectQuery.cs

@ -87,7 +87,7 @@ namespace OrmTest.UnitTest
public SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer });
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer });
return db;
}
}

2
OrmTest/UnitTest/Query/SingleQuery.cs

@ -116,7 +116,7 @@ namespace OrmTest.UnitTest
public SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer });
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer });
return db;
}
}

2
OrmTest/UnitTest/Setting/AutoClose.cs

@ -29,7 +29,7 @@ namespace OrmTest.UnitTest
}
public SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
return db;
}
}

2
OrmTest/UnitTest/Setting/MapColumn.cs

@ -11,7 +11,7 @@ namespace OrmTest.UnitTest
{
public SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer });
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer });
return db;
}
}

2
OrmTest/UnitTest/Setting/MapTable.cs

@ -25,7 +25,7 @@ namespace OrmTest.UnitTest
}
public SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
return db;
}
}

2
OrmTest/UnitTest/Update.cs

@ -121,7 +121,7 @@ UNION ALL
public SqlSugarClient GetInstance()
{
SqlSugarClient db = new SqlSugarClient(new SystemTablesConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
SqlSugarClient db = new SqlSugarClient(new SystemTableConfig() { ConnectionString = Config.ConnectionString, DbType = DbType.SqlServer, IsAutoCloseConnection = true });
return db;
}
}

2
SqlSugar/Abstract/DbMaintenanceProvider/DbMaintenanceProvider.cs

@ -84,7 +84,7 @@ namespace SqlSugar
}
private bool IsSystemTables()
{
var isSystemTables = Context.CurrentConnectionConfig is SystemTablesConfig;
var isSystemTables = Context.CurrentConnectionConfig is SystemTableConfig;
return isSystemTables;
}
#endregion

2
SqlSugar/Entities/ConnectionConfig.cs

@ -12,7 +12,7 @@ namespace SqlSugar
bool IsAutoCloseConnection { get; set; }
}
public class SystemTablesConfig : IConnectionConfig
public class SystemTableConfig : IConnectionConfig
{
public string DbType { get; set; }
public string ConnectionString { get; set; }

6
SqlSugar/SqlSugarClient.cs

@ -20,7 +20,7 @@ namespace SqlSugar
{
get
{
return this.CurrentConnectionConfig is SystemTablesConfig;
return this.CurrentConnectionConfig is SystemTableConfig;
}
}
#endregion
@ -30,7 +30,7 @@ namespace SqlSugar
/// If you have system table permissions, use this
/// </summary>
/// <param name="config"></param>
public SqlSugarClient(SystemTablesConfig config)
public SqlSugarClient(SystemTableConfig config)
{
base.Context = this;
base.CurrentConnectionConfig = config;
@ -53,7 +53,7 @@ namespace SqlSugar
/// </summary>
/// <param name="masterConnectionConfig"></param>
/// <param name="slaveConnectionConfigs"></param>
public SqlSugarClient(SystemTablesConfig masterConnectionConfig, IConnectionConfig[] slaveConnectionConfigs)
public SqlSugarClient(SystemTableConfig masterConnectionConfig, IConnectionConfig[] slaveConnectionConfigs)
{
base.Context = this;
base.CurrentConnectionConfig = masterConnectionConfig;

Loading…
Cancel
Save