mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-25 10:19:17 +08:00
Add db.GetCurrentConfigIds
This commit is contained in:
@@ -9,6 +9,7 @@ using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Schema;
|
||||
|
||||
namespace SqlSugar
|
||||
{
|
||||
@@ -842,6 +843,10 @@ namespace SqlSugar
|
||||
#endregion
|
||||
|
||||
#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 AopProvider Aop => this.Context.Aop;
|
||||
public ICodeFirst CodeFirst => this.Context.CodeFirst;
|
||||
|
||||
@@ -917,5 +917,9 @@ namespace SqlSugar
|
||||
{
|
||||
ScopedContext.ClearTracking();
|
||||
}
|
||||
public string[] GetCurrentConfigIds()
|
||||
{
|
||||
return ScopedContext.GetCurrentConfigIds();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user