2026-09-22 09:48:14 +00:00
|
|
|
namespace Sozsoft.Notifications.Domain;
|
2026-02-24 20:44:16 +00:00
|
|
|
|
|
|
|
|
public static class Prefix
|
|
|
|
|
{
|
2026-09-22 09:48:14 +00:00
|
|
|
public static string MenuPrefix { get; set; } = "Adm";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Bildirim tablolari kiraci kapsamindadir: tip, kural ve kuyruk kayitlarinin her biri bir
|
|
|
|
|
/// kiraciya aittir, host kaydi yoktur. Bu yuzden prefix host (<c>H</c>) degil tenant (<c>T</c>).
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static string TenantPrefix { get; set; } = "T";
|
|
|
|
|
|
2026-02-24 20:44:16 +00:00
|
|
|
public static string? DbSchema { get; set; } = null;
|
|
|
|
|
|
|
|
|
|
public const string ConnectionStringName = "Notifications";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class TablePrefix
|
|
|
|
|
{
|
|
|
|
|
public static string ByName(string tableName)
|
|
|
|
|
{
|
2026-09-22 09:48:14 +00:00
|
|
|
return $"{Prefix.MenuPrefix}_{Prefix.TenantPrefix}_{tableName}";
|
2026-02-24 20:44:16 +00:00
|
|
|
}
|
|
|
|
|
}
|