30 lines
784 B
C#
30 lines
784 B
C#
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; }
|
|
}
|
|
}
|