sozsoft-platform/api/modules/Sozsoft.Notifications/Sozsoft.Notifications.Domain/NotificationDbProperties.cs

25 lines
721 B
C#
Raw Normal View History

namespace Sozsoft.Notifications.Domain;
2026-02-24 20:44:16 +00:00
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";
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)
{
return $"{Prefix.MenuPrefix}_{Prefix.TenantPrefix}_{tableName}";
2026-02-24 20:44:16 +00:00
}
}