mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-20 08:26:37 +08:00
refactor: 重构多租户模块,优化上线
This commit is contained in:
30
Yi.Abp.Net8/src/Yi.Abp.Web/TestOptions.cs
Normal file
30
Yi.Abp.Net8/src/Yi.Abp.Web/TestOptions.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Volo.Abp.Data;
|
||||
|
||||
namespace Yi.Abp.Web
|
||||
{
|
||||
public class TestOptions
|
||||
{
|
||||
public ConnectionStrings2 ConnectionStrings { get; set; }=new ConnectionStrings2();
|
||||
|
||||
public AbpDatabaseInfoDictionary2 Databases { get; set; }=new AbpDatabaseInfoDictionary2();
|
||||
}
|
||||
|
||||
public class ConnectionStrings2 : Dictionary<string, string?>
|
||||
{
|
||||
}
|
||||
public class AbpDatabaseInfoDictionary2 : Dictionary<string, AbpDatabaseInfo2>
|
||||
{
|
||||
}
|
||||
|
||||
public class AbpDatabaseInfo2
|
||||
{
|
||||
internal AbpDatabaseInfo2(string databaseName)
|
||||
{
|
||||
DatabaseName = databaseName;
|
||||
MappedConnections = new HashSet<string>();
|
||||
}
|
||||
public string DatabaseName { get; }
|
||||
public HashSet<string> MappedConnections { get; }
|
||||
public bool IsUsedByTenants { get; set; } = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user