mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-26 10:49:20 +08:00
Add db.GetCurrentConfigIds
This commit is contained in:
@@ -9,6 +9,7 @@ using System.Reflection;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using System.Xml.Schema;
|
||||||
|
|
||||||
namespace SqlSugar
|
namespace SqlSugar
|
||||||
{
|
{
|
||||||
@@ -842,6 +843,10 @@ namespace SqlSugar
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region More api
|
#region More api
|
||||||
|
public string[] GetCurrentConfigIds()
|
||||||
|
{
|
||||||
|
return _AllClients.Select(it=>it.ConnectionConfig.ConfigId+string.Empty).ToArray();
|
||||||
|
}
|
||||||
public IContextMethods Utilities { get { return this.Context.Utilities; } set { this.Context.Utilities = value; } }
|
public IContextMethods Utilities { get { return this.Context.Utilities; } set { this.Context.Utilities = value; } }
|
||||||
public AopProvider Aop => this.Context.Aop;
|
public AopProvider Aop => this.Context.Aop;
|
||||||
public ICodeFirst CodeFirst => this.Context.CodeFirst;
|
public ICodeFirst CodeFirst => this.Context.CodeFirst;
|
||||||
|
|||||||
@@ -917,5 +917,9 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
ScopedContext.ClearTracking();
|
ScopedContext.ClearTracking();
|
||||||
}
|
}
|
||||||
|
public string[] GetCurrentConfigIds()
|
||||||
|
{
|
||||||
|
return ScopedContext.GetCurrentConfigIds();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user