sozsoft-platform/api/modules/Sozsoft.Notifications/Sozsoft.Notifications.Domain/NotificationDbProperties.cs
2026-09-22 12:48:14 +03:00

24 lines
721 B
C#

namespace Sozsoft.Notifications.Domain;
public static class Prefix
{
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";
public static string? DbSchema { get; set; } = null;
public const string ConnectionStringName = "Notifications";
}
public static class TablePrefix
{
public static string ByName(string tableName)
{
return $"{Prefix.MenuPrefix}_{Prefix.TenantPrefix}_{tableName}";
}
}