feat(dal): Добавлен TemplateNameGeneratorService для генерации имени шаблонов по маске в Job

This commit is contained in:
Mikhail Kuznetsov
2025-06-18 09:58:23 +10:00
parent 38c9bb402e
commit 4b0ece1a2e
14 changed files with 4068 additions and 5 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class tblSettingsAddParamTemplateNameConstantParts : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "Settings",
columns: new[] { "Name", "Description", "Value" },
values: new object[] { "TemplateNameConstantParts", "Список неизменных частей имени шаблона", "[{\"Name\":\"П-1\",\"Value\":\"ЭИТИ\"},{\"Name\":\"П-2\",\"Value\":\"ПАРР\"}]" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "Settings",
keyColumn: "Name",
keyValue: "TemplateNameConstantParts");
}
}
}

View File

@@ -2471,6 +2471,12 @@ namespace PARR.DAL.Migrations
Name = "WeekendCacheTtl",
Description = "Время хранения в кэше данных о выходных и рабочих днях",
Value = "01:00:00"
},
new
{
Name = "TemplateNameConstantParts",
Description = "Список неизменных частей имени шаблона",
Value = "[{\"Name\":\"П-1\",\"Value\":\"ЭИТИ\"},{\"Name\":\"П-2\",\"Value\":\"ПАРР\"}]"
});
});