mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
-
This commit is contained in:
@@ -25,21 +25,18 @@ namespace SqlSugar
|
|||||||
private IgnoreColumnList _IgnoreInsertColumns;
|
private IgnoreColumnList _IgnoreInsertColumns;
|
||||||
internal Guid? AsyncId { get; set; }
|
internal Guid? AsyncId { get; set; }
|
||||||
internal bool? IsSingleInstance { get; set; }
|
internal bool? IsSingleInstance { get; set; }
|
||||||
internal List<ConnectionConfig> _allConfigs { get; set; }
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Constructor
|
#region Constructor
|
||||||
public SqlSugarClient(ConnectionConfig config)
|
public SqlSugarClient(ConnectionConfig config)
|
||||||
{
|
{
|
||||||
_allConfigs = new List<ConnectionConfig>() { config };
|
|
||||||
Check.Exception(config == null, "ConnectionConfig config is null");
|
Check.Exception(config == null, "ConnectionConfig config is null");
|
||||||
InitContext(config);
|
InitContext(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
public SqlSugarClient(List<ConnectionConfig> configs)
|
public SqlSugarClient(List<ConnectionConfig> configs)
|
||||||
{
|
{
|
||||||
_allConfigs = configs;
|
|
||||||
Check.Exception(configs.IsNullOrEmpty(), "List<ConnectionConfig> configs is null");
|
Check.Exception(configs.IsNullOrEmpty(), "List<ConnectionConfig> configs is null");
|
||||||
InitConfigs(configs);
|
InitConfigs(configs);
|
||||||
var config = configs.First();
|
var config = configs.First();
|
||||||
|
Reference in New Issue
Block a user