mh_frame_sps/APT.Infrastructure.EF/TenantOption.cs

30 lines
784 B
C#
Raw Normal View History

2026-04-07 13:47:52 +08:00
using System;
using APT.Infrastructure.Api;
namespace APT.Infrastructure.EF
{
public class TenantOption
{
public TenantOption()
{
ConnectionType = ConnectionResolverType.ByDatabase;
DbType = DbIntegrationType.Postgre;
ConnectionName = "default";
ConnectionPrefix = "";
}
public string Key { get; set; }
public ConnectionResolverType ConnectionType { get; set; }
public DbIntegrationType DbType { get; set; }
public string ConnectionName { get; set; }
public string ConnectionPrefix { get; set; }
public Func<TenantInfo, string, string> TableNameFunc { get; set; }
public Func<TenantInfo, string> SchemaFunc { get; set; }
}
}