diff --git a/api/modules/Kurs.Languages/Kurs.Languages.Domain/LanguagesDbProperties.cs b/api/modules/Kurs.Languages/Kurs.Languages.Domain/LanguagesDbProperties.cs index fed9db28..9f3f7d56 100644 --- a/api/modules/Kurs.Languages/Kurs.Languages.Domain/LanguagesDbProperties.cs +++ b/api/modules/Kurs.Languages/Kurs.Languages.Domain/LanguagesDbProperties.cs @@ -2,8 +2,8 @@ public static class Prefix { - public static string DbTablePlatform { get; set; } = "Plat"; - public static string MenuPlatform { get; set; } = "P"; + public static string MenuPrefix { get; set; } = "Plat"; + public static string HostPrefix { get; set; } = "H"; public static string? DbSchema { get; set; } = null; public const string ConnectionStringName = "Languages"; @@ -13,6 +13,6 @@ public static class TablePrefix { public static string ByName(string tableName) { - return $"{Prefix.DbTablePlatform}_{Prefix.MenuPlatform}_{tableName}"; + return $"{Prefix.MenuPrefix}_{Prefix.HostPrefix}_{tableName}"; } } diff --git a/api/modules/Kurs.MailQueue/Domain/MailQueueDbProperties.cs b/api/modules/Kurs.MailQueue/Domain/MailQueueDbProperties.cs index cb6c3b9b..3094a026 100644 --- a/api/modules/Kurs.MailQueue/Domain/MailQueueDbProperties.cs +++ b/api/modules/Kurs.MailQueue/Domain/MailQueueDbProperties.cs @@ -2,8 +2,8 @@ public static class Prefix { - public static string DbTablePlatform { get; set; } = "Plat"; - public static string MenuPlatform { get; set; } = "P"; + public static string MenuPrefix { get; set; } = "Plat"; + public static string HostPrefix { get; set; } = "H"; public static string? DbSchema { get; set; } = null; public const string ConnectionStringName = "Default"; @@ -13,6 +13,6 @@ public static class TablePrefix { public static string ByName(string tableName) { - return $"{Prefix.DbTablePlatform}_{Prefix.MenuPlatform}_{tableName}"; + return $"{Prefix.MenuPrefix}_{Prefix.HostPrefix}_{tableName}"; } } \ No newline at end of file diff --git a/api/modules/Kurs.Notifications/Kurs.Notifications.Domain/NotificationDbProperties.cs b/api/modules/Kurs.Notifications/Kurs.Notifications.Domain/NotificationDbProperties.cs index b6e1e030..871f095e 100644 --- a/api/modules/Kurs.Notifications/Kurs.Notifications.Domain/NotificationDbProperties.cs +++ b/api/modules/Kurs.Notifications/Kurs.Notifications.Domain/NotificationDbProperties.cs @@ -2,8 +2,8 @@ public static class Prefix { - public static string DbTablePlatform { get; set; } = "Plat"; - public static string MenuPlatform { get; set; } = "P"; + public static string MenuPrefix { get; set; } = "Plat"; + public static string HostPrefix { get; set; } = "H"; public static string? DbSchema { get; set; } = null; public const string ConnectionStringName = "Notifications"; @@ -13,6 +13,6 @@ public static class TablePrefix { public static string ByName(string tableName) { - return $"{Prefix.DbTablePlatform}_{Prefix.MenuPlatform}_{tableName}"; + return $"{Prefix.MenuPrefix}_{Prefix.HostPrefix}_{tableName}"; } } \ No newline at end of file diff --git a/api/modules/Kurs.Settings/Kurs.Settings.Domain/SettingsDbProperties.cs b/api/modules/Kurs.Settings/Kurs.Settings.Domain/SettingsDbProperties.cs index 00e7e524..3d67e07d 100644 --- a/api/modules/Kurs.Settings/Kurs.Settings.Domain/SettingsDbProperties.cs +++ b/api/modules/Kurs.Settings/Kurs.Settings.Domain/SettingsDbProperties.cs @@ -2,8 +2,8 @@ public static class Prefix { - public static string DbTablePlatform { get; set; } = "Plat"; - public static string MenuPlatform { get; set; } = "P"; + public static string MenuPrefix { get; set; } = "Plat"; + public static string HostPrefix { get; set; } = "H"; public static string? DbSchema { get; set; } = null; public const string ConnectionStringName = "Settings"; @@ -13,6 +13,6 @@ public static class TablePrefix { public static string ByName(string tableName) { - return $"{Prefix.DbTablePlatform}_{Prefix.MenuPlatform}_{tableName}"; + return $"{Prefix.MenuPrefix}_{Prefix.HostPrefix}_{tableName}"; } } \ No newline at end of file diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/FormSeeder.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/FormSeeder.cs new file mode 100644 index 00000000..f59c6a06 --- /dev/null +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/FormSeeder.cs @@ -0,0 +1,2624 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Text.Json; +using System.Threading.Tasks; +using DocumentFormat.OpenXml.Spreadsheet; +using Kurs.Languages.Languages; +using Kurs.Platform.Entities; +using Kurs.Platform.Enums; +using Kurs.Platform.ListForms; +using Kurs.Platform.Queries; +using Microsoft.Extensions.Configuration; +using Volo.Abp.Data; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Domain.Repositories; +using Volo.Abp.Identity; +using Volo.Abp.TenantManagement; +using static Kurs.Platform.PlatformConsts; +using AbpIdentity = Kurs.Platform.Data.Seeds.SeedConsts.AbpIdentity; +using AppCodes = Kurs.Platform.Data.Seeds.SeedConsts.AppCodes; +using Kurs.Languages.Entities; +using Kurs.Settings.Entities; + +namespace Kurs.Platform.Data.Seeds; + +public class FormSeeder : IDataSeedContributor, ITransientDependency +{ + private readonly IRepository _listFormRepository; + private readonly IRepository _listFormFieldRepository; + private readonly IdentityUserManager _identityUserManager; + private readonly IdentityRoleManager _identityRoleManager; + private readonly IConfiguration _configuration; + + public FormSeeder( + IRepository listFormRepository, + IRepository listFormFieldRepository, + IdentityUserManager userManager, + IdentityRoleManager roleManager, + IConfiguration configuration) + { + _listFormRepository = listFormRepository; + _listFormFieldRepository = listFormFieldRepository; + _identityUserManager = userManager; + _identityRoleManager = roleManager; + _configuration = configuration; + } + + public async Task SeedAsync(DataSeedContext context) + { + #region Language + if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormLanguage)) + { + var formLanguage = await _listFormRepository.InsertAsync( + new ListForm() + { + ListFormType = ListFormTypeEnum.Form, + IsSubForm = false, + ShowActivity = true, + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), + SubFormsJson = JsonSerializer.Serialize(new List() { + new { + TabTitle = "Language Texts", + TabType = ListFormTabTypeEnum.List, + Code = ListFormCodes.Lists.LanguageText, + Relation = new List() { + new { + ParentFieldName = "CultureName", + ChildFieldName = "CultureName" + } + } + } + }), + CultureName = LanguageCodes.En, + ListFormCode = ListFormCodes.Forms.FormLanguage, + Name = AppCodes.Languages.Language, + Title = AppCodes.Languages.Language, + DataSourceCode = SeedConsts.DataSources.DefaultCode, + IsTenant = false, + IsBranch = false, + IsOrganizationUnit = false, + Description = AppCodes.Languages.Language, + SelectCommandType = SelectCommandTypeEnum.Table, + SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Language)), + KeyFieldName = "Id", + KeyFieldDbSourceType = DbType.Guid, + DefaultFilter = "\"IsDeleted\" = 'false'", + SortMode = GridOptions.SortModeSingle, + PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto + { + C = AppCodes.Languages.Language + ".Create", + R = AppCodes.Languages.Language, + U = AppCodes.Languages.Language + ".Update", + D = AppCodes.Languages.Language + ".Delete", + E = AppCodes.Languages.Language + ".Export", + I = AppCodes.Languages.Language + ".Import", + A = AppCodes.Languages.Language + ".Activity" + }), + DeleteCommand = $"UPDATE \"{TableNameResolver.GetFullTableName(nameof(TableNameEnum.Language))}\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", + DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "DeleterId", + FieldDbType = DbType.Guid, + Value = "@USERID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "Id", + FieldDbType = DbType.Guid, + Value = "@ID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey } + }), + EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto + { + AllowDeleting = true, + AllowAdding = true, + AllowUpdating = true, + ConfirmDelete = true, + }), + EditingFormJson = JsonSerializer.Serialize(new List() { + new() { + Order = 1, + ColCount = 1, + ColSpan = 2, + ItemType = "group", + Items = [ + new() { Order = 1, DataField = "CultureName", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, + new() { Order = 2, DataField = "UiCultureName", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, + new() { Order = 3, DataField = "DisplayName", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, + new() { Order = 4, DataField = "IsEnabled", ColSpan = 2, IsRequired = false, EditorType2=EditorTypes.dxCheckBox }, + ] + } + }), + InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "CreationTime", + FieldDbType = DbType.DateTime, + Value = "@NOW", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "CreatorId", + FieldDbType = DbType.Guid, + Value = "@USERID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "IsDeleted", + FieldDbType = DbType.Boolean, + Value = "false", + CustomValueType = FieldCustomValueTypeEnum.Value } + }), + FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "IsEnabled", + FieldDbType = DbType.Boolean, + Value = "true", + CustomValueType = FieldCustomValueTypeEnum.Value } + }) + } + ); + await _listFormFieldRepository.InsertManyAsync([ + new() { + ListFormCode = formLanguage.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "Id", + Width = 100, + ListOrderNo = 0, + Visible = false, + IsActive = true, + IsDeleted = false, + SortIndex = 0, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Languages.Language + ".Create", + R = AppCodes.Languages.Language, + U = AppCodes.Languages.Language + ".Update", + E = true, + I = true, + Deny = false + }), + }, + new() { + ListFormCode = formLanguage.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "CultureName", + Width = 150, + ListOrderNo = 1, + Visible = true, + IsActive = true, + IsDeleted = false, + SortIndex = 1, + SortDirection = GridColumnOptions.SortOrderAsc, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Languages.Language + ".Create", + R = AppCodes.Languages.Language, + U = AppCodes.Languages.Language + ".Update", + E = true, + I = true, + Deny = false + }), + }, + new() + { + ListFormCode = formLanguage.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "UiCultureName", + Width = 150, + ListOrderNo = 2, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Languages.Language + ".Create", + R = AppCodes.Languages.Language, + U = AppCodes.Languages.Language + ".Update", + E = true, + I = true, + Deny = false + }), + }, + new() + { + ListFormCode = formLanguage.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "DisplayName", + Width = 150, + ListOrderNo = 3, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Languages.Language + ".Create", + R = AppCodes.Languages.Language, + U = AppCodes.Languages.Language + ".Update", + E = true, + I = true, + Deny = false + }), + }, + new() + { + ListFormCode = formLanguage.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "IsEnabled", + Width = 125, + ListOrderNo = 4, + Visible = true, + IsActive = true, + IsDeleted = false, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Languages.Language + ".Create", + R = AppCodes.Languages.Language, + U = AppCodes.Languages.Language + ".Update", + E = true, + I = true, + Deny = false + }), + }, + new() + { + ListFormCode = formLanguage.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.DateTime, + FieldName = "CreationTime", + Width = 125, + ListOrderNo = 5, + Visible = true, + IsActive = true, + IsDeleted = false, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Languages.Language + ".Create", + R = AppCodes.Languages.Language, + U = AppCodes.Languages.Language + ".Update", + E = true, + I = true, + Deny = false + }), + }, + ]); + } + #endregion + + #region Skill Type + if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormSkillType)) + { + var formSkillType = await _listFormRepository.InsertAsync( + new ListForm() + { + ListFormType = ListFormTypeEnum.Form, + IsSubForm = false, + ShowActivity = true, + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), + SubFormsJson = JsonSerializer.Serialize(new List() { + new { + TabTitle = "Skill Levels", + TabType = ListFormTabTypeEnum.List, + Code = ListFormCodes.Lists.SkillLevel, + Relation = new List() { + new { + ParentFieldName = "Id", + ChildFieldName = "SkillTypeId" + } + } + }, + new { + TabTitle = "Skills", + TabType = ListFormTabTypeEnum.List, + Code = ListFormCodes.Lists.Skill, + Relation = new List() { + new { + ParentFieldName = "Id", + ChildFieldName = "SkillTypeId" + } + } + } + }), + CultureName = LanguageCodes.En, + ListFormCode = ListFormCodes.Forms.FormSkillType, + Name = AppCodes.Definitions.SkillType, + Title = AppCodes.Definitions.SkillType, + DataSourceCode = SeedConsts.DataSources.DefaultCode, + IsTenant = false, + IsBranch = false, + IsOrganizationUnit = false, + Description = AppCodes.Definitions.SkillType, + SelectCommandType = SelectCommandTypeEnum.Table, + SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillType)), + KeyFieldName = "Id", + KeyFieldDbSourceType = DbType.Guid, + DefaultFilter = "\"IsDeleted\" = 'false'", + SortMode = GridOptions.SortModeSingle, + PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto + { + C = AppCodes.Definitions.SkillType + ".Create", + R = AppCodes.Definitions.SkillType, + U = AppCodes.Definitions.SkillType + ".Update", + D = AppCodes.Definitions.SkillType + ".Delete", + E = AppCodes.Definitions.SkillType + ".Export", + I = AppCodes.Definitions.SkillType + ".Import", + A = AppCodes.Definitions.SkillType + ".Activity" + }), + DeleteCommand = $"UPDATE \"{TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillType))}\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", + DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "DeleterId", + FieldDbType = DbType.Guid, + Value = "@USERID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "Id", + FieldDbType = DbType.Guid, + Value = "@ID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey } + }), + EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto + { + AllowDeleting = true, + AllowAdding = true, + AllowUpdating = true, + ConfirmDelete = true, + }), + EditingFormJson = JsonSerializer.Serialize(new List() { + new() { + Order = 1, + ColCount = 1, + ColSpan = 2, + ItemType = "group", + Items = [ + new() { Order = 1, DataField = "Name", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, + ] + } + }), + InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "CreationTime", + FieldDbType = DbType.DateTime, + Value = "@NOW", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "CreatorId", + FieldDbType = DbType.Guid, + Value = "@USERID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "IsDeleted", + FieldDbType = DbType.Boolean, + Value = "false", + CustomValueType = FieldCustomValueTypeEnum.Value } + }), + FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "IsEnabled", + FieldDbType = DbType.Boolean, + Value = "true", + CustomValueType = FieldCustomValueTypeEnum.Value } + }) + } + ); + await _listFormFieldRepository.InsertManyAsync([ + new() { + ListFormCode = formSkillType.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "Id", + Width = 100, + ListOrderNo = 0, + Visible = false, + IsActive = true, + IsDeleted = false, + SortIndex = 0, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Definitions.SkillType + ".Create", + R = AppCodes.Definitions.SkillType, + U = AppCodes.Definitions.SkillType + ".Update", + E = true, + I = true, + Deny = false + }), + }, + new() { + ListFormCode = formSkillType.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Name", + Width = 150, + ListOrderNo = 1, + Visible = true, + IsActive = true, + IsDeleted = false, + SortIndex = 1, + SortDirection = GridColumnOptions.SortOrderAsc, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Definitions.SkillType + ".Create", + R = AppCodes.Definitions.SkillType, + U = AppCodes.Definitions.SkillType + ".Update", + E = true, + I = true, + Deny = false + }), + }, + ]); + } + #endregion + + #region Uom Category + if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormUomCategory)) + { + var formUomCategory = await _listFormRepository.InsertAsync( + new ListForm() + { + ListFormType = ListFormTypeEnum.Form, + IsSubForm = false, + ShowActivity = true, + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), + SubFormsJson = JsonSerializer.Serialize(new List() { + new { + TabTitle = "Uoms", + TabType = ListFormTabTypeEnum.List, + Code = ListFormCodes.Lists.Uom, + Relation = new List() { + new { + ParentFieldName = "Id", + ChildFieldName = "UomCategoryId" + } + } + }, + }), + CultureName = LanguageCodes.En, + ListFormCode = ListFormCodes.Forms.FormUomCategory, + Name = AppCodes.Definitions.UomCategory, + Title = AppCodes.Definitions.UomCategory, + DataSourceCode = SeedConsts.DataSources.DefaultCode, + IsTenant = false, + IsBranch = false, + IsOrganizationUnit = false, + Description = AppCodes.Definitions.UomCategory, + SelectCommandType = SelectCommandTypeEnum.Table, + SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.UomCategory)), + KeyFieldName = "Id", + KeyFieldDbSourceType = DbType.Guid, + DefaultFilter = "\"IsDeleted\" = 'false'", + SortMode = GridOptions.SortModeSingle, + PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto + { + C = AppCodes.Definitions.UomCategory + ".Create", + R = AppCodes.Definitions.UomCategory, + U = AppCodes.Definitions.UomCategory + ".Update", + D = AppCodes.Definitions.UomCategory + ".Delete", + E = AppCodes.Definitions.UomCategory + ".Export", + I = AppCodes.Definitions.UomCategory + ".Import", + A = AppCodes.Definitions.UomCategory + ".Activity" + }), + DeleteCommand = $"UPDATE \"{TableNameResolver.GetFullTableName(nameof(TableNameEnum.UomCategory))}\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", + DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "DeleterId", + FieldDbType = DbType.Guid, + Value = "@USERID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "Id", + FieldDbType = DbType.Guid, + Value = "@ID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey } + }), + EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto + { + AllowDeleting = true, + AllowAdding = true, + AllowUpdating = true, + ConfirmDelete = true, + }), + EditingFormJson = JsonSerializer.Serialize(new List() { + new() { + Order = 1, + ColCount = 1, + ColSpan = 2, + ItemType = "group", + Items = [ + new() { Order = 1, DataField = "Name", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, + ] + } + }), + InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "CreationTime", + FieldDbType = DbType.DateTime, + Value = "@NOW", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "CreatorId", + FieldDbType = DbType.Guid, + Value = "@USERID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "IsDeleted", + FieldDbType = DbType.Boolean, + Value = "false", + CustomValueType = FieldCustomValueTypeEnum.Value } + }), + FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "IsEnabled", + FieldDbType = DbType.Boolean, + Value = "true", + CustomValueType = FieldCustomValueTypeEnum.Value } + }) + } + ); + await _listFormFieldRepository.InsertManyAsync([ + new() { + ListFormCode = formUomCategory.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "Id", + Width = 100, + ListOrderNo = 0, + Visible = false, + IsActive = true, + IsDeleted = false, + SortIndex = 0, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Definitions.UomCategory + ".Create", + R = AppCodes.Definitions.UomCategory, + U = AppCodes.Definitions.UomCategory + ".Update", + E = true, + I = true, + Deny = false + }), + }, + new() { + ListFormCode = formUomCategory.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Name", + Width = 150, + ListOrderNo = 1, + Visible = true, + IsActive = true, + IsDeleted = false, + SortIndex = 1, + SortDirection = GridColumnOptions.SortOrderAsc, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Definitions.UomCategory + ".Create", + R = AppCodes.Definitions.UomCategory, + U = AppCodes.Definitions.UomCategory + ".Update", + E = true, + I = true, + Deny = false + }), + }, + ]); + } + #endregion + + #region Bank + if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormBank)) + { + var formBank = await _listFormRepository.InsertAsync( + new ListForm() + { + ListFormType = ListFormTypeEnum.Form, + IsSubForm = false, + ShowActivity = true, + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), + SubFormsJson = JsonSerializer.Serialize(new List() { + new { + TabTitle = "Bank Accounts", + TabType = ListFormTabTypeEnum.List, + Code = ListFormCodes.Lists.BankAccount, + Relation = new List() { + new { + ParentFieldName = "Id", + ChildFieldName = "BankId" + }, + new { + ParentFieldName = "BranchId", + ChildFieldName = "BranchId" + }, + } + }, + }), + CultureName = LanguageCodes.En, + ListFormCode = ListFormCodes.Forms.FormBank, + Name = AppCodes.Accounting.Bank, + Title = AppCodes.Accounting.Bank, + DataSourceCode = SeedConsts.DataSources.DefaultCode, + IsTenant = false, + IsBranch = false, + IsOrganizationUnit = false, + Description = AppCodes.Accounting.Bank, + SelectCommandType = SelectCommandTypeEnum.Table, + SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Bank)), + KeyFieldName = "Id", + KeyFieldDbSourceType = DbType.Guid, + DefaultFilter = "\"IsDeleted\" = 'false'", + SortMode = GridOptions.SortModeSingle, + PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto + { + C = AppCodes.Accounting.Bank + ".Create", + R = AppCodes.Accounting.Bank, + U = AppCodes.Accounting.Bank + ".Update", + D = AppCodes.Accounting.Bank + ".Delete", + E = AppCodes.Accounting.Bank + ".Export", + I = AppCodes.Accounting.Bank + ".Import", + A = AppCodes.Accounting.Bank + ".Activity" + }), + DeleteCommand = $"UPDATE \"{TableNameResolver.GetFullTableName(nameof(TableNameEnum.Bank))}\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", + DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "DeleterId", + FieldDbType = DbType.Guid, + Value = "@USERID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "Id", + FieldDbType = DbType.Guid, + Value = "@ID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey } + }), + EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto + { + AllowDeleting = true, + AllowAdding = true, + AllowUpdating = true, + ConfirmDelete = true, + }), + EditingFormJson = JsonSerializer.Serialize(new List() { + new() { + Order = 1, + ColCount = 2, + ColSpan = 2, + ItemType = "group", + Items = [ + new EditingFormItemDto { Order = 1, DataField = "BranchId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 2, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order = 3, DataField = "IdentifierCode", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox}, + new EditingFormItemDto { Order = 4, DataField = "Address1", ColSpan = 1, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order = 5, DataField = "Address2", ColSpan = 1, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order = 6, DataField = "Country", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 7, DataField = "City", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 8, DataField = "District", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order = 9, DataField = "PostalCode", ColSpan = 1, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order = 10, DataField = "Phone", ColSpan = 1, EditorType2=EditorTypes.dxTextBox, EditorOptions=EditorOptionValues.PhoneEditorOptions }, + new EditingFormItemDto { Order = 11, DataField = "Email", ColSpan = 1, EditorType2=EditorTypes.dxTextBox }, + ] + } + }), + InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "CreationTime", + FieldDbType = DbType.DateTime, + Value = "@NOW", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "CreatorId", + FieldDbType = DbType.Guid, + Value = "@USERID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "IsDeleted", + FieldDbType = DbType.Boolean, + Value = "false", + CustomValueType = FieldCustomValueTypeEnum.Value } + }), + FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "Country", + FieldDbType = DbType.String, + Value = "TR", + CustomValueType = FieldCustomValueTypeEnum.Value } + }) + } + ); + #region Bank Fields + await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { + new() { + ListFormCode = formBank.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "Id", + Width = 100, + ListOrderNo = 1, + Visible = false, + IsActive = true, + IsDeleted = false, + SortIndex = 0, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Accounting.Bank + ".Create", + R = AppCodes.Accounting.Bank, + U = AppCodes.Accounting.Bank + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + // BranchId + new() + { + ListFormCode = formBank.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "BranchId", + Width = 150, + ListOrderNo = 2, + Visible = true, + IsActive = true, + IsDeleted = false, + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.BranchValues, + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Accounting.Bank + ".Create", + R = AppCodes.Accounting.Bank, + U = AppCodes.Accounting.Bank + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true }) + }, + new() { + ListFormCode = formBank.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Name", + Width = 150, + ListOrderNo = 3, + Visible = true, + IsActive = true, + IsDeleted = false, + SortIndex = 1, + SortDirection = GridColumnOptions.SortOrderAsc, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Accounting.Bank + ".Create", + R = AppCodes.Accounting.Bank, + U = AppCodes.Accounting.Bank + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formBank.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "IdentifierCode", + Width = 150, + ListOrderNo = 4, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Accounting.Bank + ".Create", + R = AppCodes.Accounting.Bank, + U = AppCodes.Accounting.Bank + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formBank.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Address1", + Width = 150, + ListOrderNo = 5, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Accounting.Bank + ".Create", + R = AppCodes.Accounting.Bank, + U = AppCodes.Accounting.Bank + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formBank.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Address2", + Width = 150, + ListOrderNo = 6, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Accounting.Bank + ".Create", + R = AppCodes.Accounting.Bank, + U = AppCodes.Accounting.Bank + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formBank.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Country", + Width = 100, + ListOrderNo = 7, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + LookupJson = JsonSerializer.Serialize(new LookupDto + { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.CountryValues, + CascadeEmptyFields = "City,District,Street" + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Accounting.Bank + ".Create", + R = AppCodes.Accounting.Bank, + U = AppCodes.Accounting.Bank + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formBank.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "City", + Width = 100, + ListOrderNo = 8, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + LookupJson = JsonSerializer.Serialize(new LookupDto + { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.CityValues, + CascadeRelationField = "Country", + CascadeFilterOperator="=", + CascadeParentFields = "Country", + CascadeEmptyFields = "District,Street" + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Accounting.Bank + ".Create", + R = AppCodes.Accounting.Bank, + U = AppCodes.Accounting.Bank + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formBank.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "District", + Width = 100, + ListOrderNo = 9, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + LookupJson = JsonSerializer.Serialize(new LookupDto + { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.DistrictValues, + CascadeRelationField = "City", + CascadeFilterOperator="=", + CascadeParentFields = "Country,City", + CascadeEmptyFields = "Street", + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Accounting.Bank + ".Create", + R = AppCodes.Accounting.Bank, + U = AppCodes.Accounting.Bank + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formBank.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "PostalCode", + Width = 150, + ListOrderNo = 10, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Accounting.Bank + ".Create", + R = AppCodes.Accounting.Bank, + U = AppCodes.Accounting.Bank + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formBank.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Phone", + Width = 150, + ListOrderNo = 11, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Accounting.Bank + ".Create", + R = AppCodes.Accounting.Bank, + U = AppCodes.Accounting.Bank + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formBank.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Email", + Width = 150, + ListOrderNo = 10, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] + { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.email) } + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Accounting.Bank + ".Create", + R = AppCodes.Accounting.Bank, + U = AppCodes.Accounting.Bank + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + }); + #endregion + } + #endregion + + #region Tenant + if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormTenant)) + { + var formTenant = await _listFormRepository.InsertAsync( + new ListForm() + { + ListFormType = ListFormTypeEnum.Form, + IsSubForm = false, + ShowActivity = true, + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), + SubFormsJson = JsonSerializer.Serialize(new List() { + new { + TabTitle = "Branches", + TabType = ListFormTabTypeEnum.List, + Code = ListFormCodes.Lists.Branch, + Relation = new List() { + new { + ParentFieldName = "Id", + ChildFieldName = "TenantId" + } + } + } + }), + CultureName = LanguageCodes.En, + ListFormCode = ListFormCodes.Forms.FormTenant, + Name = TenantManagementPermissions.Tenants.Default, + Title = TenantManagementPermissions.Tenants.Default, + DataSourceCode = SeedConsts.DataSources.DefaultCode, + IsTenant = false, + IsBranch = false, + IsOrganizationUnit = false, + Description = TenantManagementPermissions.Tenants.Default, + SelectCommandType = SelectCommandTypeEnum.Table, + SelectCommand = "AbpTenants", + KeyFieldName = "Id", + KeyFieldDbSourceType = DbType.Guid, + SortMode = GridOptions.SortModeSingle, + FilterRowJson = JsonSerializer.Serialize(new GridFilterRowDto + { + Visible = true + }), + HeaderFilterJson = JsonSerializer.Serialize(new + { + Visible = true + }), + SearchPanelJson = JsonSerializer.Serialize(new + { + Visible = true + }), + GroupPanelJson = JsonSerializer.Serialize(new + { + Visible = true + }), + SelectionJson = JsonSerializer.Serialize(new SelectionDto + { + Mode = GridOptions.SelectionModeSingle, + AllowSelectAll = false + }), + ColumnOptionJson = JsonSerializer.Serialize(new + { + ColumnFixingEnabled = true, + ColumnAutoWidth = true, + ColumnChooserEnabled = true + }), + PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + D = TenantManagementPermissions.Tenants.Delete, + E = TenantManagementPermissions.Tenants.Default + ".Export", + I = TenantManagementPermissions.Tenants.Default + ".Import", + A = TenantManagementPermissions.Tenants.Default + ".Activity", + }), + PagerOptionJson = JsonSerializer.Serialize(new GridPagerOptionDto + { + Visible = true, + AllowedPageSizes = "10,20,50,100", + ShowPageSizeSelector = true, + ShowNavigationButtons = true, + ShowInfo = false, + InfoText = "Page {0} of {1} ({2} items)", + DisplayMode = GridColumnOptions.PagerDisplayModeAdaptive, + ScrollingMode = GridColumnOptions.ScrollingModeStandard, + LoadPanelEnabled = "auto", + LoadPanelText = "Loading..." + }), + EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto + { + Popup = new GridEditingPopupDto() + { + Title = "Tenant Form", + Width = 900, + Height = 450 + }, + AllowDeleting = true, + AllowAdding = true, + AllowUpdating = true, + SendOnlyChangedFormValuesUpdate = false, + }), + EditingFormJson = JsonSerializer.Serialize(new List() + { + new() { Order=1, ColCount=2, ColSpan=1, ItemType="group", Items = + [ + new EditingFormItemDto { Order=1, DataField = "Name", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order=2, DataField = "OrganizationName", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order=3, DataField = "Founder", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order=4, DataField = "VknTckn", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxNumberBox }, + new EditingFormItemDto { Order=5, DataField = "TaxOffice", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order=6, DataField = "Mobile", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions=EditorOptionValues.PhoneEditorOptions }, + new EditingFormItemDto { Order=7, DataField = "Phone", ColSpan=1, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions=EditorOptionValues.PhoneEditorOptions }, + new EditingFormItemDto { Order=8, DataField = "Fax", ColSpan=1, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions=EditorOptionValues.PhoneEditorOptions }, + new EditingFormItemDto { Order=9, DataField = "IsActive", ColSpan=1, IsRequired=false, EditorType2=EditorTypes.dxCheckBox }, + ] + }, + new() { Order=2, ColCount=2, ColSpan=1, ItemType="group", Items = + [ + new EditingFormItemDto { Order=1, DataField = "Country", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order=2, DataField = "City", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order=3, DataField = "District", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order=4, DataField = "Street", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order=5, DataField = "PostalCode", ColSpan=1, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions=EditorOptionValues.ShowClearButton }, + new EditingFormItemDto { Order=6, DataField = "Address1", ColSpan=1, IsRequired=false, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order=7, DataField = "Address2", ColSpan=1, IsRequired=false, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order=8, DataField = "Email", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order=9, DataField = "Website", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, + ] + } + }), + CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] { + new() { + Hint = "Seed", + Text = "Seed", + AuthName = TenantManagementPermissions.Tenants.ManageConnectionStrings, + DialogName = "TenantsConnectionString", + DialogParameters = JsonSerializer.Serialize(new { + name = "@Name", + id = "@Id" + }) + }, + }), + InsertServiceAddress = "list-form-dynamic-api/tenant-insert", + UpdateServiceAddress = "list-form-dynamic-api/tenant-update", + DeleteCommand = "DELETE FROM \"AbpTenants\" WHERE \"Id\"=@Id", + DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "Id", + FieldDbType = DbType.Guid, + Value = "@ID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey } + }), + FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "IsActive", + FieldDbType = DbType.Boolean, + Value = "true", + CustomValueType = FieldCustomValueTypeEnum.Value }, + new() { + FieldName = "Country", + FieldDbType = DbType.String, + Value = "TR", + CustomValueType = FieldCustomValueTypeEnum.Value } + }) + + } + ); + + #region Tenants Fields + await _listFormFieldRepository.InsertManyAsync( + [ + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "Id", + Width = 500, + ListOrderNo = 1, + Visible = false, + IsActive = true, + IsDeleted = false, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Name", + Width = 100, + ListOrderNo = 2, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "OrganizationName", + Width = 200, + ListOrderNo = 3, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Founder", + Width = 200, + ListOrderNo = 4, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "VknTckn", + Width = 100, + ListOrderNo = 5, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "TaxOffice", + Width = 150, + ListOrderNo = 6, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Country", + Width = 100, + ListOrderNo = 7, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + LookupJson = JsonSerializer.Serialize(new LookupDto + { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.CountryValues, + CascadeEmptyFields = "City,District,Street" + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "City", + Width = 100, + ListOrderNo = 8, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + LookupJson = JsonSerializer.Serialize(new LookupDto + { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.CityValues, + CascadeRelationField = "Country", + CascadeFilterOperator="=", + CascadeParentFields = "Country", + CascadeEmptyFields = "District,Street" + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "District", + Width = 100, + ListOrderNo = 9, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + LookupJson = JsonSerializer.Serialize(new LookupDto + { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.DistrictValues, + CascadeRelationField = "City", + CascadeFilterOperator="=", + CascadeParentFields = "Country,City", + CascadeEmptyFields = "Street", + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Street", + Width = 100, + ListOrderNo = 10, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + LookupJson = JsonSerializer.Serialize(new LookupDto + { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.StreetValues, + CascadeRelationField = "District", + CascadeFilterOperator="=", + CascadeParentFields = "Country,City,District" + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Address1", + Width = 150, + ListOrderNo = 11, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Address2", + Width = 150, + ListOrderNo = 12, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "PostalCode", + Width = 100, + ListOrderNo = 13, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Email", + Width = 170, + ListOrderNo = 14, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] + { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.email) } + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Website", + Width = 170, + ListOrderNo = 15, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Mobile", + Width = 100, + ListOrderNo = 16, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Phone", + Width = 100, + ListOrderNo = 17, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Fax", + Width = 100, + ListOrderNo = 18, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new ListFormField + { + ListFormCode = formTenant.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "IsActive", + Width = 100, + ListOrderNo = 19, + Visible = true, + IsActive = true, + IsDeleted = false, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = TenantManagementPermissions.Tenants.Create, + R = TenantManagementPermissions.Tenants.Default, + U = TenantManagementPermissions.Tenants.Update, + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + ]); + #endregion + + } + #endregion + + #region Question Pool + if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormQuestionPool)) + { + var formQuestionPool = await _listFormRepository.InsertAsync( + new ListForm() + { + ListFormType = ListFormTypeEnum.Form, + IsSubForm = false, + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), + SubFormsJson = JsonSerializer.Serialize(new List() { + new { + TabTitle = "Questions", + TabType = ListFormTabTypeEnum.List, + Code = ListFormCodes.Lists.Question, + Relation = new List() { + new { + ParentFieldName = "Id", + ChildFieldName = "QuestionPoolId" + } + } + } + }), + CultureName = LanguageCodes.En, + ListFormCode = ListFormCodes.Forms.FormQuestionPool, + Name = AppCodes.Definitions.QuestionPool, + Title = AppCodes.Definitions.QuestionPool, + DataSourceCode = SeedConsts.DataSources.DefaultCode, + IsTenant = true, + IsBranch = false, + IsOrganizationUnit = false, + Description = AppCodes.Definitions.QuestionPool, + SelectCommandType = SelectCommandTypeEnum.Table, + SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.QuestionPool)), + KeyFieldName = "Id", + KeyFieldDbSourceType = DbType.Guid, + DefaultFilter = "\"IsDeleted\" = 'false'", + SortMode = GridOptions.SortModeSingle, + FilterRowJson = JsonSerializer.Serialize(new GridFilterRowDto { Visible = true }), + HeaderFilterJson = JsonSerializer.Serialize(new { Visible = true }), + SearchPanelJson = JsonSerializer.Serialize(new { Visible = true }), + GroupPanelJson = JsonSerializer.Serialize(new { Visible = true }), + SelectionJson = JsonSerializer.Serialize(new SelectionDto + { + Mode = GridOptions.SelectionModeSingle, + AllowSelectAll = false + }), + ColumnOptionJson = JsonSerializer.Serialize(new + { + ColumnFixingEnabled = true, + ColumnAutoWidth = true, + ColumnChooserEnabled = true, + AllowColumnResizing = true, + AllowColumnReordering = true, + ColumnResizingMode = "widget", + }), + PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto + { + C = AppCodes.Definitions.QuestionPool + ".Create", + R = AppCodes.Definitions.QuestionPool, + U = AppCodes.Definitions.QuestionPool + ".Update", + D = AppCodes.Definitions.QuestionPool + ".Delete", + E = AppCodes.Definitions.QuestionPool + ".Export", + I = AppCodes.Definitions.QuestionPool + ".Import", + A = AppCodes.Definitions.QuestionPool + ".Activity", + }), + DeleteCommand = $"UPDATE \"{TableNameResolver.GetFullTableName(nameof(TableNameEnum.QuestionPool))}\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", + DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "DeleterId", + FieldDbType = DbType.Guid, + Value = "@USERID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "Id", + FieldDbType = DbType.Guid, + Value = "@ID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey } + }), + PagerOptionJson = JsonSerializer.Serialize(new GridPagerOptionDto + { + Visible = true, + AllowedPageSizes = "10,20,50,100", + ShowPageSizeSelector = true, + ShowNavigationButtons = true, + ShowInfo = false, + InfoText = "Page {0} of {1} ({2} items)", + DisplayMode = GridColumnOptions.PagerDisplayModeAdaptive, + ScrollingMode = GridColumnOptions.ScrollingModeStandard, + LoadPanelEnabled = "auto", + LoadPanelText = "Loading..." + }), + EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto + { + Popup = new GridEditingPopupDto() + { + Title = "Question Pool Form", + Width = 500, + Height = 250 + }, + AllowDeleting = true, + AllowAdding = true, + AllowUpdating = true, + SendOnlyChangedFormValuesUpdate = false, + }), + EditingFormJson = JsonSerializer.Serialize(new List() { + new() { Order=1,ColCount=1,ColSpan=2,ItemType="group", Items= + [ + new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order = 2, DataField = "Description", ColSpan = 2, EditorType2=EditorTypes.dxTextBox }, + new EditingFormItemDto { Order = 3, DataField = "Tags", ColSpan = 2, EditorType2=EditorTypes.dxTagBox }, + ] + } + }), + InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "CreationTime", + FieldDbType = DbType.DateTime, + Value = "@NOW", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "CreatorId", + FieldDbType = DbType.Guid, + Value = "@USERID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "IsDeleted", + FieldDbType = DbType.Boolean, + Value = "false", + CustomValueType = FieldCustomValueTypeEnum.Value } + }), + } + ); + + #region Question Pool Fields + await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { + new() { + ListFormCode = formQuestionPool.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "Id", + Width = 100, + ListOrderNo = 1, + Visible = false, + IsActive = true, + IsDeleted = false, + SortIndex = 0, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Definitions.QuestionPool + ".Create", + R = AppCodes.Definitions.QuestionPool, + U = AppCodes.Definitions.QuestionPool + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formQuestionPool.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Name", + Width = 250, + ListOrderNo = 2, + Visible = true, + IsActive = true, + IsDeleted = false, + SortIndex = 1, + SortDirection = GridColumnOptions.SortOrderAsc, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Definitions.QuestionPool + ".Create", + R = AppCodes.Definitions.QuestionPool, + U = AppCodes.Definitions.QuestionPool + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formQuestionPool.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Description", + Width = 400, + ListOrderNo = 3, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Definitions.QuestionPool + ".Create", + R = AppCodes.Definitions.QuestionPool, + U = AppCodes.Definitions.QuestionPool + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formQuestionPool.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Tags", + Width = 100, + ListOrderNo = 4, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + LookupJson = JsonSerializer.Serialize(new LookupDto { + DataSourceType = UiLookupDataSourceTypeEnum.Query, + DisplayExpr = "Name", + ValueExpr = "Key", + LookupQuery = LookupQueryValues.QuestionTagValues + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Definitions.QuestionPool + ".Create", + R = AppCodes.Definitions.QuestionPool, + U = AppCodes.Definitions.QuestionPool + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + } + }); + #endregion + } + #endregion + + #region Survey + if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormSurvey)) + { + var formSurvey = await _listFormRepository.InsertAsync( + new ListForm() + { + ListFormType = ListFormTypeEnum.Form, + IsSubForm = false, + LayoutJson = JsonSerializer.Serialize(new LayoutDto() + { + Grid = true, + Card = true, + Pivot = true, + Chart = true, + DefaultLayout = "grid", + CardLayoutColumn = 3 + }), + SubFormsJson = JsonSerializer.Serialize(new List() { + new { + TabTitle = "Questions", + TabType = ListFormTabTypeEnum.List, + Code = ListFormCodes.Lists.SurveyQuestion, + Relation = new List() { + new { + ParentFieldName = "Id", + ChildFieldName = "SurveyId" + } + } + }, + new { + TabTitle = "Responses", + TabType = ListFormTabTypeEnum.List, + Code = ListFormCodes.Lists.SurveyResponse, + Relation = new List() { + new { + ParentFieldName = "Id", + ChildFieldName = "SurveyId" + } + } + } + }), + CultureName = LanguageCodes.En, + ListFormCode = ListFormCodes.Forms.FormSurvey, + Name = AppCodes.Hr.Survey, + Title = AppCodes.Hr.Survey, + DataSourceCode = SeedConsts.DataSources.DefaultCode, + IsTenant = true, + IsBranch = false, + IsOrganizationUnit = false, + Description = AppCodes.Hr.Survey, + SelectCommandType = SelectCommandTypeEnum.Table, + SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Survey)), + KeyFieldName = "Id", + KeyFieldDbSourceType = DbType.Guid, + DefaultFilter = "\"IsDeleted\" = 'false'", + SortMode = GridOptions.SortModeSingle, + FilterRowJson = JsonSerializer.Serialize(new GridFilterRowDto { Visible = true }), + HeaderFilterJson = JsonSerializer.Serialize(new { Visible = true }), + SearchPanelJson = JsonSerializer.Serialize(new { Visible = true }), + GroupPanelJson = JsonSerializer.Serialize(new { Visible = true }), + SelectionJson = JsonSerializer.Serialize(new SelectionDto + { + Mode = GridOptions.SelectionModeSingle, + AllowSelectAll = false + }), + ColumnOptionJson = JsonSerializer.Serialize(new + { + ColumnFixingEnabled = true, + ColumnAutoWidth = true, + ColumnChooserEnabled = true, + AllowColumnResizing = true, + AllowColumnReordering = true, + ColumnResizingMode = "widget", + }), + PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto + { + C = AppCodes.Hr.Survey + ".Create", + R = AppCodes.Hr.Survey, + U = AppCodes.Hr.Survey + ".Update", + D = AppCodes.Hr.Survey + ".Delete", + E = AppCodes.Hr.Survey + ".Export", + I = AppCodes.Hr.Survey + ".Import", + A = AppCodes.Hr.Survey + ".Activity", + }), + DeleteCommand = $"UPDATE \"{TableNameResolver.GetFullTableName(nameof(TableNameEnum.Survey))}\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", + DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "DeleterId", + FieldDbType = DbType.Guid, + Value = "@USERID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "Id", + FieldDbType = DbType.Guid, + Value = "@ID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey } + }), + PagerOptionJson = JsonSerializer.Serialize(new GridPagerOptionDto + { + Visible = true, + AllowedPageSizes = "10,20,50,100", + ShowPageSizeSelector = true, + ShowNavigationButtons = true, + ShowInfo = false, + InfoText = "Page {0} of {1} ({2} items)", + DisplayMode = GridColumnOptions.PagerDisplayModeAdaptive, + ScrollingMode = GridColumnOptions.ScrollingModeStandard, + LoadPanelEnabled = "auto", + LoadPanelText = "Loading..." + }), + EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto + { + Popup = new GridEditingPopupDto() + { + Title = "Survey Form", + Width = 500, + Height = 450 + }, + AllowDeleting = true, + AllowAdding = true, + AllowUpdating = true, + SendOnlyChangedFormValuesUpdate = false, + }), + InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { + new() { + FieldName = "CreationTime", + FieldDbType = DbType.DateTime, + Value = "@NOW", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "CreatorId", + FieldDbType = DbType.Guid, + Value = "@USERID", + CustomValueType = FieldCustomValueTypeEnum.CustomKey }, + new() { + FieldName = "IsDeleted", + FieldDbType = DbType.Boolean, + Value = "false", + CustomValueType = FieldCustomValueTypeEnum.Value } + }), + EditingFormJson = JsonSerializer.Serialize(new List() + { + new() { + Order=1, ColCount=1, ColSpan=2, ItemType="group", Items = + [ + new EditingFormItemDto { Order = 1, DataField = "Title", IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, + new EditingFormItemDto { Order = 2, DataField = "Description", IsRequired = true, EditorType2 = EditorTypes.dxTextArea }, + new EditingFormItemDto { Order = 3, DataField = "Deadline", IsRequired = true, EditorType2 = EditorTypes.dxDateBox }, + new EditingFormItemDto { Order = 4, DataField = "Status", IsRequired = true, EditorType2 = EditorTypes.dxSelectBox }, + new EditingFormItemDto { Order = 5, DataField = "IsAnonymous", IsRequired = true, EditorType2 = EditorTypes.dxCheckBox }, + ] + } + }), + FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] + { + new() { + FieldName = "IsAnonymous", + FieldDbType = DbType.Boolean, + Value = "false", + CustomValueType = FieldCustomValueTypeEnum.Value }, + new() { + FieldName = "Status", + FieldDbType = DbType.String, + Value = "draft", + CustomValueType = FieldCustomValueTypeEnum.Value } + }), + } + ); + + #region Survey Fields + await _listFormFieldRepository.InsertManyAsync([ + new() { + ListFormCode = formSurvey.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Guid, + FieldName = "Id", + Width = 100, + ListOrderNo = 1, + Visible = false, + IsActive = true, + IsDeleted = false, + SortIndex = 0, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Intranet.Announcement + ".Create", + R = AppCodes.Intranet.Announcement, + U = AppCodes.Intranet.Announcement + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formSurvey.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Title", + Width = 200, + ListOrderNo = 2, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Hr.Survey + ".Create", + R = AppCodes.Hr.Survey, + U = AppCodes.Hr.Survey + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formSurvey.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Date, + FieldName = "Deadline", + Width = 100, + ListOrderNo = 3, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Hr.Survey + ".Create", + R = AppCodes.Hr.Survey, + U = AppCodes.Hr.Survey + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formSurvey.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Int32, + FieldName = "Responses", + Width = 100, + ListOrderNo = 4, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Hr.Survey + ".Create", + R = AppCodes.Hr.Survey, + U = AppCodes.Hr.Survey + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formSurvey.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.String, + FieldName = "Status", + Width = 100, + ListOrderNo = 5, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + LookupJson = JsonSerializer.Serialize(new LookupDto + { + DataSourceType = UiLookupDataSourceTypeEnum.StaticData, + DisplayExpr = "name", + ValueExpr = "key", + LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] { + new () { Key= "draft", Name= "Draft" }, + new () { Key= "active", Name= "Active" }, + new () { Key= "closed", Name= "Closed" }, + }), + }), + ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { + new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } + }), + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Hr.Survey + ".Create", + R = AppCodes.Hr.Survey, + U = AppCodes.Hr.Survey + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + new() { + ListFormCode = formSurvey.ListFormCode, + CultureName = LanguageCodes.En, + SourceDbType = DbType.Boolean, + FieldName = "IsAnonymous", + Width = 100, + ListOrderNo = 6, + Visible = true, + IsActive = true, + IsDeleted = false, + AllowSearch = true, + ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto + { + AllowReordering = true, + }), + PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto + { + C = AppCodes.Hr.Survey + ".Create", + R = AppCodes.Hr.Survey, + U = AppCodes.Hr.Survey + ".Update", + E = true, + I = true, + Deny = false + }), + PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto + { + IsPivot = true + }) + }, + ]); + #endregion + } + #endregion + } +} diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/HostDataSeeder.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/HostDataSeeder.cs index 64f7213c..932aedc6 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/HostDataSeeder.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/HostDataSeeder.cs @@ -23,6 +23,117 @@ using Kurs.Platform.Extensions; namespace Kurs.Platform.Data.Seeds; +#region SeedDtos +public class AiBotSeedDto +{ + public string BotName { get; set; } +} + +public class LanguageTextsSeedDto +{ + public string ResourceName { get; set; } + public string Key { get; set; } + public string En { get; set; } + public string Tr { get; set; } +} + +public class BackgroundWorkerSeedDto +{ + public string Name { get; set; } + public string Cron { get; set; } + public string WorkerType { get; set; } + public bool IsActive { get; set; } + public string DataSourceCode { get; set; } +} + +public class NotificationRuleSeedDto +{ + public string NotificationType { get; set; } + public string RecipientType { get; set; } + public string RecipientId { get; set; } + public string Channel { get; set; } + public bool IsActive { get; set; } + public bool IsFixed { get; set; } + public bool IsCustomized { get; set; } +} + +public class MenuSeedDto +{ + public string ParentCode { get; set; } + public string Code { get; set; } + public string DisplayName { get; set; } + public int Order { get; set; } + public string Url { get; set; } + public string Icon { get; set; } + public string RequiredPermissionName { get; set; } + public bool IsDisabled { get; set; } +} + +public class PermissionGroupDefinitionRecordSeedDto +{ + public string Name { get; set; } + public string DisplayName { get; set; } +} + +public class PermissionDefinitionRecordSeedDto +{ + public string GroupName { get; set; } + public string Name { get; set; } + public string ParentName { get; set; } + public string DisplayName { get; set; } + public bool IsEnabled { get; set; } + public int MultiTenancySide { get; set; } + public string MenuGroup { get; set; } +} + +public class CurrencySeedDto +{ + public string Code { get; set; } + public string Symbol { get; set; } + public string Name { get; set; } + public bool IsActive { get; set; } +} + +public class ContactTagSeedDto +{ + public string Name { get; set; } + public string Category { get; set; } +} + +public class ContactTitleSeedDto +{ + public string Title { get; set; } + public string Abbreviation { get; set; } +} + +public class RouteSeedDto +{ + public string Key { get; set; } + public string Path { get; set; } + public string ComponentPath { get; set; } + public string RouteType { get; set; } + public string[] Authority { get; set; } +} + +public class HostSeederDto +{ + public List AiBots { get; set; } + public List Languages { get; set; } + public List LanguageTexts { get; set; } + public List DataSources { get; set; } + public List Settings { get; set; } + public List BackgroundWorkers { get; set; } + public List NotificationRules { get; set; } + public List Menus { get; set; } + public List PermissionGroupDefinitionRecords { get; set; } + public List PermissionDefinitionRecords { get; set; } + public List Currencies { get; set; } + public List ContactTags { get; set; } + public List ContactTitles { get; set; } + public List Routes { get; set; } +} +#endregion + public class HostDataSeeder : IDataSeedContributor, ITransientDependency { private readonly IRepository _aiBotRepository; diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/ListSeeder.cs similarity index 91% rename from api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder.cs rename to api/src/Kurs.Platform.DbMigrator/Seeds/ListSeeder.cs index 63fceb47..45efd475 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/ListSeeder.cs @@ -23,116 +23,7 @@ using Kurs.Settings.Entities; namespace Kurs.Platform.Data.Seeds; -public class AiBotSeedDto -{ - public string BotName { get; set; } -} - -public class LanguageTextsSeedDto -{ - public string ResourceName { get; set; } - public string Key { get; set; } - public string En { get; set; } - public string Tr { get; set; } -} - -public class BackgroundWorkerSeedDto -{ - public string Name { get; set; } - public string Cron { get; set; } - public string WorkerType { get; set; } - public bool IsActive { get; set; } - public string DataSourceCode { get; set; } -} - -public class NotificationRuleSeedDto -{ - public string NotificationType { get; set; } - public string RecipientType { get; set; } - public string RecipientId { get; set; } - public string Channel { get; set; } - public bool IsActive { get; set; } - public bool IsFixed { get; set; } - public bool IsCustomized { get; set; } -} - -public class MenuSeedDto -{ - public string ParentCode { get; set; } - public string Code { get; set; } - public string DisplayName { get; set; } - public int Order { get; set; } - public string Url { get; set; } - public string Icon { get; set; } - public string RequiredPermissionName { get; set; } - public bool IsDisabled { get; set; } -} - -public class PermissionGroupDefinitionRecordSeedDto -{ - public string Name { get; set; } - public string DisplayName { get; set; } -} - -public class PermissionDefinitionRecordSeedDto -{ - public string GroupName { get; set; } - public string Name { get; set; } - public string ParentName { get; set; } - public string DisplayName { get; set; } - public bool IsEnabled { get; set; } - public int MultiTenancySide { get; set; } - public string MenuGroup { get; set; } -} - -public class CurrencySeedDto -{ - public string Code { get; set; } - public string Symbol { get; set; } - public string Name { get; set; } - public bool IsActive { get; set; } -} - -public class ContactTagSeedDto -{ - public string Name { get; set; } - public string Category { get; set; } -} - -public class ContactTitleSeedDto -{ - public string Title { get; set; } - public string Abbreviation { get; set; } -} - -public class RouteSeedDto -{ - public string Key { get; set; } - public string Path { get; set; } - public string ComponentPath { get; set; } - public string RouteType { get; set; } - public string[] Authority { get; set; } -} - -public class HostSeederDto -{ - public List AiBots { get; set; } - public List Languages { get; set; } - public List LanguageTexts { get; set; } - public List DataSources { get; set; } - public List Settings { get; set; } - public List BackgroundWorkers { get; set; } - public List NotificationRules { get; set; } - public List Menus { get; set; } - public List PermissionGroupDefinitionRecords { get; set; } - public List PermissionDefinitionRecords { get; set; } - public List Currencies { get; set; } - public List ContactTags { get; set; } - public List ContactTitles { get; set; } - public List Routes { get; set; } -} - -public class ListFormSeeder : IDataSeedContributor, ITransientDependency +public class ListSeeder : IDataSeedContributor, ITransientDependency { private readonly IRepository _listFormRepository; private readonly IRepository _listFormFieldRepository; @@ -140,7 +31,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency private readonly IdentityRoleManager _identityRoleManager; private readonly IConfiguration _configuration; - public ListFormSeeder( + public ListSeeder( IRepository listFormRepository, IRepository listFormFieldRepository, IdentityUserManager userManager, @@ -156,2736 +47,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency public async Task SeedAsync(DataSeedContext context) { - #region Form - - #region Language - if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormLanguage)) - { - var formLanguage = await _listFormRepository.InsertAsync( - new ListForm() - { - ListFormType = ListFormTypeEnum.Form, - IsSubForm = false, - ShowActivity = true, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), - SubFormsJson = JsonSerializer.Serialize(new List() { - new { - TabTitle = "Language Texts", - TabType = ListFormTabTypeEnum.List, - Code = ListFormCodes.Lists.LanguageText, - Relation = new List() { - new { - ParentFieldName = "CultureName", - ChildFieldName = "CultureName" - } - } - } - }), - CultureName = LanguageCodes.En, - ListFormCode = ListFormCodes.Forms.FormLanguage, - Name = AppCodes.Languages.Language, - Title = AppCodes.Languages.Language, - DataSourceCode = SeedConsts.DataSources.DefaultCode, - IsTenant = false, - IsBranch = false, - IsOrganizationUnit = false, - Description = AppCodes.Languages.Language, - SelectCommandType = SelectCommandTypeEnum.Table, - SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Language)), - KeyFieldName = "Id", - KeyFieldDbSourceType = DbType.Guid, - DefaultFilter = "\"IsDeleted\" = 'false'", - SortMode = GridOptions.SortModeSingle, - PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto - { - C = AppCodes.Languages.Language + ".Create", - R = AppCodes.Languages.Language, - U = AppCodes.Languages.Language + ".Update", - D = AppCodes.Languages.Language + ".Delete", - E = AppCodes.Languages.Language + ".Export", - I = AppCodes.Languages.Language + ".Import", - A = AppCodes.Languages.Language + ".Activity" - }), - DeleteCommand = $"UPDATE \"{TableNameResolver.GetFullTableName(nameof(TableNameEnum.Language))}\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", - DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "DeleterId", - FieldDbType = DbType.Guid, - Value = "@USERID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "Id", - FieldDbType = DbType.Guid, - Value = "@ID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey } - }), - EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto - { - AllowDeleting = true, - AllowAdding = true, - AllowUpdating = true, - ConfirmDelete = true, - }), - EditingFormJson = JsonSerializer.Serialize(new List() { - new() { - Order = 1, - ColCount = 1, - ColSpan = 2, - ItemType = "group", - Items = [ - new() { Order = 1, DataField = "CultureName", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, - new() { Order = 2, DataField = "UiCultureName", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, - new() { Order = 3, DataField = "DisplayName", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, - new() { Order = 4, DataField = "IsEnabled", ColSpan = 2, IsRequired = false, EditorType2=EditorTypes.dxCheckBox }, - ] - } - }), - InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "CreationTime", - FieldDbType = DbType.DateTime, - Value = "@NOW", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "CreatorId", - FieldDbType = DbType.Guid, - Value = "@USERID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "IsDeleted", - FieldDbType = DbType.Boolean, - Value = "false", - CustomValueType = FieldCustomValueTypeEnum.Value } - }), - FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "IsEnabled", - FieldDbType = DbType.Boolean, - Value = "true", - CustomValueType = FieldCustomValueTypeEnum.Value } - }) - } - ); - await _listFormFieldRepository.InsertManyAsync([ - new() { - ListFormCode = formLanguage.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "Id", - Width = 100, - ListOrderNo = 0, - Visible = false, - IsActive = true, - IsDeleted = false, - SortIndex = 0, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Languages.Language + ".Create", - R = AppCodes.Languages.Language, - U = AppCodes.Languages.Language + ".Update", - E = true, - I = true, - Deny = false - }), - }, - new() { - ListFormCode = formLanguage.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "CultureName", - Width = 150, - ListOrderNo = 1, - Visible = true, - IsActive = true, - IsDeleted = false, - SortIndex = 1, - SortDirection = GridColumnOptions.SortOrderAsc, - AllowSearch = true, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Languages.Language + ".Create", - R = AppCodes.Languages.Language, - U = AppCodes.Languages.Language + ".Update", - E = true, - I = true, - Deny = false - }), - }, - new() - { - ListFormCode = formLanguage.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "UiCultureName", - Width = 150, - ListOrderNo = 2, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Languages.Language + ".Create", - R = AppCodes.Languages.Language, - U = AppCodes.Languages.Language + ".Update", - E = true, - I = true, - Deny = false - }), - }, - new() - { - ListFormCode = formLanguage.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "DisplayName", - Width = 150, - ListOrderNo = 3, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Languages.Language + ".Create", - R = AppCodes.Languages.Language, - U = AppCodes.Languages.Language + ".Update", - E = true, - I = true, - Deny = false - }), - }, - new() - { - ListFormCode = formLanguage.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.Boolean, - FieldName = "IsEnabled", - Width = 125, - ListOrderNo = 4, - Visible = true, - IsActive = true, - IsDeleted = false, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Languages.Language + ".Create", - R = AppCodes.Languages.Language, - U = AppCodes.Languages.Language + ".Update", - E = true, - I = true, - Deny = false - }), - }, - new() - { - ListFormCode = formLanguage.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.DateTime, - FieldName = "CreationTime", - Width = 125, - ListOrderNo = 5, - Visible = true, - IsActive = true, - IsDeleted = false, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Languages.Language + ".Create", - R = AppCodes.Languages.Language, - U = AppCodes.Languages.Language + ".Update", - E = true, - I = true, - Deny = false - }), - }, - ]); - } - #endregion - - #region Skill Type - if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormSkillType)) - { - var formSkillType = await _listFormRepository.InsertAsync( - new ListForm() - { - ListFormType = ListFormTypeEnum.Form, - IsSubForm = false, - ShowActivity = true, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), - SubFormsJson = JsonSerializer.Serialize(new List() { - new { - TabTitle = "Skill Levels", - TabType = ListFormTabTypeEnum.List, - Code = ListFormCodes.Lists.SkillLevel, - Relation = new List() { - new { - ParentFieldName = "Id", - ChildFieldName = "SkillTypeId" - } - } - }, - new { - TabTitle = "Skills", - TabType = ListFormTabTypeEnum.List, - Code = ListFormCodes.Lists.Skill, - Relation = new List() { - new { - ParentFieldName = "Id", - ChildFieldName = "SkillTypeId" - } - } - } - }), - CultureName = LanguageCodes.En, - ListFormCode = ListFormCodes.Forms.FormSkillType, - Name = AppCodes.Definitions.SkillType, - Title = AppCodes.Definitions.SkillType, - DataSourceCode = SeedConsts.DataSources.DefaultCode, - IsTenant = false, - IsBranch = false, - IsOrganizationUnit = false, - Description = AppCodes.Definitions.SkillType, - SelectCommandType = SelectCommandTypeEnum.Table, - SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillType)), - KeyFieldName = "Id", - KeyFieldDbSourceType = DbType.Guid, - DefaultFilter = "\"IsDeleted\" = 'false'", - SortMode = GridOptions.SortModeSingle, - PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto - { - C = AppCodes.Definitions.SkillType + ".Create", - R = AppCodes.Definitions.SkillType, - U = AppCodes.Definitions.SkillType + ".Update", - D = AppCodes.Definitions.SkillType + ".Delete", - E = AppCodes.Definitions.SkillType + ".Export", - I = AppCodes.Definitions.SkillType + ".Import", - A = AppCodes.Definitions.SkillType + ".Activity" - }), - DeleteCommand = $"UPDATE \"{TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillType))}\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", - DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "DeleterId", - FieldDbType = DbType.Guid, - Value = "@USERID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "Id", - FieldDbType = DbType.Guid, - Value = "@ID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey } - }), - EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto - { - AllowDeleting = true, - AllowAdding = true, - AllowUpdating = true, - ConfirmDelete = true, - }), - EditingFormJson = JsonSerializer.Serialize(new List() { - new() { - Order = 1, - ColCount = 1, - ColSpan = 2, - ItemType = "group", - Items = [ - new() { Order = 1, DataField = "Name", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, - ] - } - }), - InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "CreationTime", - FieldDbType = DbType.DateTime, - Value = "@NOW", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "CreatorId", - FieldDbType = DbType.Guid, - Value = "@USERID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "IsDeleted", - FieldDbType = DbType.Boolean, - Value = "false", - CustomValueType = FieldCustomValueTypeEnum.Value } - }), - FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "IsEnabled", - FieldDbType = DbType.Boolean, - Value = "true", - CustomValueType = FieldCustomValueTypeEnum.Value } - }) - } - ); - await _listFormFieldRepository.InsertManyAsync([ - new() { - ListFormCode = formSkillType.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "Id", - Width = 100, - ListOrderNo = 0, - Visible = false, - IsActive = true, - IsDeleted = false, - SortIndex = 0, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Definitions.SkillType + ".Create", - R = AppCodes.Definitions.SkillType, - U = AppCodes.Definitions.SkillType + ".Update", - E = true, - I = true, - Deny = false - }), - }, - new() { - ListFormCode = formSkillType.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Name", - Width = 150, - ListOrderNo = 1, - Visible = true, - IsActive = true, - IsDeleted = false, - SortIndex = 1, - SortDirection = GridColumnOptions.SortOrderAsc, - AllowSearch = true, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Definitions.SkillType + ".Create", - R = AppCodes.Definitions.SkillType, - U = AppCodes.Definitions.SkillType + ".Update", - E = true, - I = true, - Deny = false - }), - }, - ]); - } - #endregion - - #region Uom Category - if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormUomCategory)) - { - var formUomCategory = await _listFormRepository.InsertAsync( - new ListForm() - { - ListFormType = ListFormTypeEnum.Form, - IsSubForm = false, - ShowActivity = true, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), - SubFormsJson = JsonSerializer.Serialize(new List() { - new { - TabTitle = "Uoms", - TabType = ListFormTabTypeEnum.List, - Code = ListFormCodes.Lists.Uom, - Relation = new List() { - new { - ParentFieldName = "Id", - ChildFieldName = "UomCategoryId" - } - } - }, - }), - CultureName = LanguageCodes.En, - ListFormCode = ListFormCodes.Forms.FormUomCategory, - Name = AppCodes.Definitions.UomCategory, - Title = AppCodes.Definitions.UomCategory, - DataSourceCode = SeedConsts.DataSources.DefaultCode, - IsTenant = false, - IsBranch = false, - IsOrganizationUnit = false, - Description = AppCodes.Definitions.UomCategory, - SelectCommandType = SelectCommandTypeEnum.Table, - SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.UomCategory)), - KeyFieldName = "Id", - KeyFieldDbSourceType = DbType.Guid, - DefaultFilter = "\"IsDeleted\" = 'false'", - SortMode = GridOptions.SortModeSingle, - PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto - { - C = AppCodes.Definitions.UomCategory + ".Create", - R = AppCodes.Definitions.UomCategory, - U = AppCodes.Definitions.UomCategory + ".Update", - D = AppCodes.Definitions.UomCategory + ".Delete", - E = AppCodes.Definitions.UomCategory + ".Export", - I = AppCodes.Definitions.UomCategory + ".Import", - A = AppCodes.Definitions.UomCategory + ".Activity" - }), - DeleteCommand = $"UPDATE \"{TableNameResolver.GetFullTableName(nameof(TableNameEnum.UomCategory))}\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", - DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "DeleterId", - FieldDbType = DbType.Guid, - Value = "@USERID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "Id", - FieldDbType = DbType.Guid, - Value = "@ID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey } - }), - EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto - { - AllowDeleting = true, - AllowAdding = true, - AllowUpdating = true, - ConfirmDelete = true, - }), - EditingFormJson = JsonSerializer.Serialize(new List() { - new() { - Order = 1, - ColCount = 1, - ColSpan = 2, - ItemType = "group", - Items = [ - new() { Order = 1, DataField = "Name", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, - ] - } - }), - InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "CreationTime", - FieldDbType = DbType.DateTime, - Value = "@NOW", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "CreatorId", - FieldDbType = DbType.Guid, - Value = "@USERID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "IsDeleted", - FieldDbType = DbType.Boolean, - Value = "false", - CustomValueType = FieldCustomValueTypeEnum.Value } - }), - FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "IsEnabled", - FieldDbType = DbType.Boolean, - Value = "true", - CustomValueType = FieldCustomValueTypeEnum.Value } - }) - } - ); - await _listFormFieldRepository.InsertManyAsync([ - new() { - ListFormCode = formUomCategory.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "Id", - Width = 100, - ListOrderNo = 0, - Visible = false, - IsActive = true, - IsDeleted = false, - SortIndex = 0, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Definitions.UomCategory + ".Create", - R = AppCodes.Definitions.UomCategory, - U = AppCodes.Definitions.UomCategory + ".Update", - E = true, - I = true, - Deny = false - }), - }, - new() { - ListFormCode = formUomCategory.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Name", - Width = 150, - ListOrderNo = 1, - Visible = true, - IsActive = true, - IsDeleted = false, - SortIndex = 1, - SortDirection = GridColumnOptions.SortOrderAsc, - AllowSearch = true, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Definitions.UomCategory + ".Create", - R = AppCodes.Definitions.UomCategory, - U = AppCodes.Definitions.UomCategory + ".Update", - E = true, - I = true, - Deny = false - }), - }, - ]); - } - #endregion - - #region Bank - if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormBank)) - { - var formBank = await _listFormRepository.InsertAsync( - new ListForm() - { - ListFormType = ListFormTypeEnum.Form, - IsSubForm = false, - ShowActivity = true, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), - SubFormsJson = JsonSerializer.Serialize(new List() { - new { - TabTitle = "Bank Accounts", - TabType = ListFormTabTypeEnum.List, - Code = ListFormCodes.Lists.BankAccount, - Relation = new List() { - new { - ParentFieldName = "Id", - ChildFieldName = "BankId" - }, - new { - ParentFieldName = "BranchId", - ChildFieldName = "BranchId" - }, - } - }, - }), - CultureName = LanguageCodes.En, - ListFormCode = ListFormCodes.Forms.FormBank, - Name = AppCodes.Accounting.Bank, - Title = AppCodes.Accounting.Bank, - DataSourceCode = SeedConsts.DataSources.DefaultCode, - IsTenant = false, - IsBranch = false, - IsOrganizationUnit = false, - Description = AppCodes.Accounting.Bank, - SelectCommandType = SelectCommandTypeEnum.Table, - SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Bank)), - KeyFieldName = "Id", - KeyFieldDbSourceType = DbType.Guid, - DefaultFilter = "\"IsDeleted\" = 'false'", - SortMode = GridOptions.SortModeSingle, - PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto - { - C = AppCodes.Accounting.Bank + ".Create", - R = AppCodes.Accounting.Bank, - U = AppCodes.Accounting.Bank + ".Update", - D = AppCodes.Accounting.Bank + ".Delete", - E = AppCodes.Accounting.Bank + ".Export", - I = AppCodes.Accounting.Bank + ".Import", - A = AppCodes.Accounting.Bank + ".Activity" - }), - DeleteCommand = $"UPDATE \"{TableNameResolver.GetFullTableName(nameof(TableNameEnum.Bank))}\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", - DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "DeleterId", - FieldDbType = DbType.Guid, - Value = "@USERID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "Id", - FieldDbType = DbType.Guid, - Value = "@ID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey } - }), - EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto - { - AllowDeleting = true, - AllowAdding = true, - AllowUpdating = true, - ConfirmDelete = true, - }), - EditingFormJson = JsonSerializer.Serialize(new List() { - new() { - Order = 1, - ColCount = 2, - ColSpan = 2, - ItemType = "group", - Items = [ - new EditingFormItemDto { Order = 1, DataField = "BranchId", ColSpan = 1, IsRequired = true, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order = 2, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 3, DataField = "IdentifierCode", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox}, - new EditingFormItemDto { Order = 4, DataField = "Address1", ColSpan = 1, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 5, DataField = "Address2", ColSpan = 1, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 6, DataField = "Country", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order = 7, DataField = "City", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order = 8, DataField = "District", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order = 9, DataField = "PostalCode", ColSpan = 1, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 10, DataField = "Phone", ColSpan = 1, EditorType2=EditorTypes.dxTextBox, EditorOptions=EditorOptionValues.PhoneEditorOptions }, - new EditingFormItemDto { Order = 11, DataField = "Email", ColSpan = 1, EditorType2=EditorTypes.dxTextBox }, - ] - } - }), - InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "CreationTime", - FieldDbType = DbType.DateTime, - Value = "@NOW", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "CreatorId", - FieldDbType = DbType.Guid, - Value = "@USERID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "IsDeleted", - FieldDbType = DbType.Boolean, - Value = "false", - CustomValueType = FieldCustomValueTypeEnum.Value } - }), - FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "Country", - FieldDbType = DbType.String, - Value = "TR", - CustomValueType = FieldCustomValueTypeEnum.Value } - }) - } - ); - #region Bank Fields - await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { - new() { - ListFormCode = formBank.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "Id", - Width = 100, - ListOrderNo = 1, - Visible = false, - IsActive = true, - IsDeleted = false, - SortIndex = 0, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Accounting.Bank + ".Create", - R = AppCodes.Accounting.Bank, - U = AppCodes.Accounting.Bank + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - // BranchId - new() - { - ListFormCode = formBank.ListFormCode, - CultureName = LanguageCodes.En, - RoleId = null, - UserId = null, - SourceDbType = DbType.Guid, - FieldName = "BranchId", - Width = 150, - ListOrderNo = 2, - Visible = true, - IsActive = true, - IsDeleted = false, - LookupJson = JsonSerializer.Serialize(new LookupDto { - DataSourceType = UiLookupDataSourceTypeEnum.Query, - DisplayExpr = "Name", - ValueExpr = "Key", - LookupQuery = LookupQueryValues.BranchValues, - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Accounting.Bank + ".Create", - R = AppCodes.Accounting.Bank, - U = AppCodes.Accounting.Bank + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true }) - }, - new() { - ListFormCode = formBank.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Name", - Width = 150, - ListOrderNo = 3, - Visible = true, - IsActive = true, - IsDeleted = false, - SortIndex = 1, - SortDirection = GridColumnOptions.SortOrderAsc, - AllowSearch = true, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Accounting.Bank + ".Create", - R = AppCodes.Accounting.Bank, - U = AppCodes.Accounting.Bank + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formBank.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "IdentifierCode", - Width = 150, - ListOrderNo = 4, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required)} - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Accounting.Bank + ".Create", - R = AppCodes.Accounting.Bank, - U = AppCodes.Accounting.Bank + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formBank.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Address1", - Width = 150, - ListOrderNo = 5, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Accounting.Bank + ".Create", - R = AppCodes.Accounting.Bank, - U = AppCodes.Accounting.Bank + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formBank.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Address2", - Width = 150, - ListOrderNo = 6, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Accounting.Bank + ".Create", - R = AppCodes.Accounting.Bank, - U = AppCodes.Accounting.Bank + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formBank.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Country", - Width = 100, - ListOrderNo = 7, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - LookupJson = JsonSerializer.Serialize(new LookupDto - { - DataSourceType = UiLookupDataSourceTypeEnum.Query, - DisplayExpr = "Name", - ValueExpr = "Key", - LookupQuery = LookupQueryValues.CountryValues, - CascadeEmptyFields = "City,District,Street" - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Accounting.Bank + ".Create", - R = AppCodes.Accounting.Bank, - U = AppCodes.Accounting.Bank + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formBank.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "City", - Width = 100, - ListOrderNo = 8, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - LookupJson = JsonSerializer.Serialize(new LookupDto - { - DataSourceType = UiLookupDataSourceTypeEnum.Query, - DisplayExpr = "Name", - ValueExpr = "Key", - LookupQuery = LookupQueryValues.CityValues, - CascadeRelationField = "Country", - CascadeFilterOperator="=", - CascadeParentFields = "Country", - CascadeEmptyFields = "District,Street" - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Accounting.Bank + ".Create", - R = AppCodes.Accounting.Bank, - U = AppCodes.Accounting.Bank + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formBank.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "District", - Width = 100, - ListOrderNo = 9, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - LookupJson = JsonSerializer.Serialize(new LookupDto - { - DataSourceType = UiLookupDataSourceTypeEnum.Query, - DisplayExpr = "Name", - ValueExpr = "Key", - LookupQuery = LookupQueryValues.DistrictValues, - CascadeRelationField = "City", - CascadeFilterOperator="=", - CascadeParentFields = "Country,City", - CascadeEmptyFields = "Street", - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Accounting.Bank + ".Create", - R = AppCodes.Accounting.Bank, - U = AppCodes.Accounting.Bank + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formBank.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "PostalCode", - Width = 150, - ListOrderNo = 10, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Accounting.Bank + ".Create", - R = AppCodes.Accounting.Bank, - U = AppCodes.Accounting.Bank + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formBank.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Phone", - Width = 150, - ListOrderNo = 11, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Accounting.Bank + ".Create", - R = AppCodes.Accounting.Bank, - U = AppCodes.Accounting.Bank + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formBank.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Email", - Width = 150, - ListOrderNo = 10, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] - { - new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.email) } - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Accounting.Bank + ".Create", - R = AppCodes.Accounting.Bank, - U = AppCodes.Accounting.Bank + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - }); - #endregion - } - #endregion - - #region Tenant - if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormTenant)) - { - var formTenant = await _listFormRepository.InsertAsync( - new ListForm() - { - ListFormType = ListFormTypeEnum.Form, - IsSubForm = false, - ShowActivity = true, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), - SubFormsJson = JsonSerializer.Serialize(new List() { - new { - TabTitle = "Branches", - TabType = ListFormTabTypeEnum.List, - Code = ListFormCodes.Lists.Branch, - Relation = new List() { - new { - ParentFieldName = "Id", - ChildFieldName = "TenantId" - } - } - } - }), - CultureName = LanguageCodes.En, - ListFormCode = ListFormCodes.Forms.FormTenant, - Name = TenantManagementPermissions.Tenants.Default, - Title = TenantManagementPermissions.Tenants.Default, - DataSourceCode = SeedConsts.DataSources.DefaultCode, - IsTenant = false, - IsBranch = false, - IsOrganizationUnit = false, - Description = TenantManagementPermissions.Tenants.Default, - SelectCommandType = SelectCommandTypeEnum.Table, - SelectCommand = "AbpTenants", - KeyFieldName = "Id", - KeyFieldDbSourceType = DbType.Guid, - SortMode = GridOptions.SortModeSingle, - FilterRowJson = JsonSerializer.Serialize(new GridFilterRowDto - { - Visible = true - }), - HeaderFilterJson = JsonSerializer.Serialize(new - { - Visible = true - }), - SearchPanelJson = JsonSerializer.Serialize(new - { - Visible = true - }), - GroupPanelJson = JsonSerializer.Serialize(new - { - Visible = true - }), - SelectionJson = JsonSerializer.Serialize(new SelectionDto - { - Mode = GridOptions.SelectionModeSingle, - AllowSelectAll = false - }), - ColumnOptionJson = JsonSerializer.Serialize(new - { - ColumnFixingEnabled = true, - ColumnAutoWidth = true, - ColumnChooserEnabled = true - }), - PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - D = TenantManagementPermissions.Tenants.Delete, - E = TenantManagementPermissions.Tenants.Default + ".Export", - I = TenantManagementPermissions.Tenants.Default + ".Import", - A = TenantManagementPermissions.Tenants.Default + ".Activity", - }), - PagerOptionJson = JsonSerializer.Serialize(new GridPagerOptionDto - { - Visible = true, - AllowedPageSizes = "10,20,50,100", - ShowPageSizeSelector = true, - ShowNavigationButtons = true, - ShowInfo = false, - InfoText = "Page {0} of {1} ({2} items)", - DisplayMode = GridColumnOptions.PagerDisplayModeAdaptive, - ScrollingMode = GridColumnOptions.ScrollingModeStandard, - LoadPanelEnabled = "auto", - LoadPanelText = "Loading..." - }), - EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto - { - Popup = new GridEditingPopupDto() - { - Title = "Tenant Form", - Width = 900, - Height = 450 - }, - AllowDeleting = true, - AllowAdding = true, - AllowUpdating = true, - SendOnlyChangedFormValuesUpdate = false, - }), - EditingFormJson = JsonSerializer.Serialize(new List() - { - new() { Order=1, ColCount=2, ColSpan=1, ItemType="group", Items = - [ - new EditingFormItemDto { Order=1, DataField = "Name", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order=2, DataField = "OrganizationName", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order=3, DataField = "Founder", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order=4, DataField = "VknTckn", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxNumberBox }, - new EditingFormItemDto { Order=5, DataField = "TaxOffice", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order=6, DataField = "Mobile", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox, EditorOptions=EditorOptionValues.PhoneEditorOptions }, - new EditingFormItemDto { Order=7, DataField = "Phone", ColSpan=1, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions=EditorOptionValues.PhoneEditorOptions }, - new EditingFormItemDto { Order=8, DataField = "Fax", ColSpan=1, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions=EditorOptionValues.PhoneEditorOptions }, - new EditingFormItemDto { Order=9, DataField = "IsActive", ColSpan=1, IsRequired=false, EditorType2=EditorTypes.dxCheckBox }, - ] - }, - new() { Order=2, ColCount=2, ColSpan=1, ItemType="group", Items = - [ - new EditingFormItemDto { Order=1, DataField = "Country", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order=2, DataField = "City", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order=3, DataField = "District", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order=4, DataField = "Street", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order=5, DataField = "PostalCode", ColSpan=1, IsRequired=false, EditorType2=EditorTypes.dxTextBox, EditorOptions=EditorOptionValues.ShowClearButton }, - new EditingFormItemDto { Order=6, DataField = "Address1", ColSpan=1, IsRequired=false, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order=7, DataField = "Address2", ColSpan=1, IsRequired=false, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order=8, DataField = "Email", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order=9, DataField = "Website", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox }, - ] - } - }), - CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] { - new() { - Hint = "Seed", - Text = "Seed", - AuthName = TenantManagementPermissions.Tenants.ManageConnectionStrings, - DialogName = "TenantsConnectionString", - DialogParameters = JsonSerializer.Serialize(new { - name = "@Name", - id = "@Id" - }) - }, - }), - InsertServiceAddress = "list-form-dynamic-api/tenant-insert", - UpdateServiceAddress = "list-form-dynamic-api/tenant-update", - DeleteCommand = "DELETE FROM \"AbpTenants\" WHERE \"Id\"=@Id", - DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "Id", - FieldDbType = DbType.Guid, - Value = "@ID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey } - }), - FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "IsActive", - FieldDbType = DbType.Boolean, - Value = "true", - CustomValueType = FieldCustomValueTypeEnum.Value }, - new() { - FieldName = "Country", - FieldDbType = DbType.String, - Value = "TR", - CustomValueType = FieldCustomValueTypeEnum.Value } - }) - - } - ); - - #region Tenants Fields - await _listFormFieldRepository.InsertManyAsync( - [ - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "Id", - Width = 500, - ListOrderNo = 1, - Visible = false, - IsActive = true, - IsDeleted = false, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Name", - Width = 100, - ListOrderNo = 2, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "OrganizationName", - Width = 200, - ListOrderNo = 3, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Founder", - Width = 200, - ListOrderNo = 4, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "VknTckn", - Width = 100, - ListOrderNo = 5, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "TaxOffice", - Width = 150, - ListOrderNo = 6, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Country", - Width = 100, - ListOrderNo = 7, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - LookupJson = JsonSerializer.Serialize(new LookupDto - { - DataSourceType = UiLookupDataSourceTypeEnum.Query, - DisplayExpr = "Name", - ValueExpr = "Key", - LookupQuery = LookupQueryValues.CountryValues, - CascadeEmptyFields = "City,District,Street" - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "City", - Width = 100, - ListOrderNo = 8, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - LookupJson = JsonSerializer.Serialize(new LookupDto - { - DataSourceType = UiLookupDataSourceTypeEnum.Query, - DisplayExpr = "Name", - ValueExpr = "Key", - LookupQuery = LookupQueryValues.CityValues, - CascadeRelationField = "Country", - CascadeFilterOperator="=", - CascadeParentFields = "Country", - CascadeEmptyFields = "District,Street" - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "District", - Width = 100, - ListOrderNo = 9, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - LookupJson = JsonSerializer.Serialize(new LookupDto - { - DataSourceType = UiLookupDataSourceTypeEnum.Query, - DisplayExpr = "Name", - ValueExpr = "Key", - LookupQuery = LookupQueryValues.DistrictValues, - CascadeRelationField = "City", - CascadeFilterOperator="=", - CascadeParentFields = "Country,City", - CascadeEmptyFields = "Street", - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Street", - Width = 100, - ListOrderNo = 10, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - LookupJson = JsonSerializer.Serialize(new LookupDto - { - DataSourceType = UiLookupDataSourceTypeEnum.Query, - DisplayExpr = "Name", - ValueExpr = "Key", - LookupQuery = LookupQueryValues.StreetValues, - CascadeRelationField = "District", - CascadeFilterOperator="=", - CascadeParentFields = "Country,City,District" - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Address1", - Width = 150, - ListOrderNo = 11, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Address2", - Width = 150, - ListOrderNo = 12, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "PostalCode", - Width = 100, - ListOrderNo = 13, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Email", - Width = 170, - ListOrderNo = 14, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] - { - new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.email) } - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Website", - Width = 170, - ListOrderNo = 15, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Mobile", - Width = 100, - ListOrderNo = 16, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Phone", - Width = 100, - ListOrderNo = 17, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Fax", - Width = 100, - ListOrderNo = 18, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new ListFormField - { - ListFormCode = formTenant.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.Boolean, - FieldName = "IsActive", - Width = 100, - ListOrderNo = 19, - Visible = true, - IsActive = true, - IsDeleted = false, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = TenantManagementPermissions.Tenants.Create, - R = TenantManagementPermissions.Tenants.Default, - U = TenantManagementPermissions.Tenants.Update, - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - ]); - #endregion - - } - #endregion - - #region Question Pool - if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormQuestionPool)) - { - var formQuestionPool = await _listFormRepository.InsertAsync( - new ListForm() - { - ListFormType = ListFormTypeEnum.Form, - IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), - SubFormsJson = JsonSerializer.Serialize(new List() { - new { - TabTitle = "Questions", - TabType = ListFormTabTypeEnum.List, - Code = ListFormCodes.Lists.Question, - Relation = new List() { - new { - ParentFieldName = "Id", - ChildFieldName = "QuestionPoolId" - } - } - } - }), - CultureName = LanguageCodes.En, - ListFormCode = ListFormCodes.Forms.FormQuestionPool, - Name = AppCodes.Definitions.QuestionPool, - Title = AppCodes.Definitions.QuestionPool, - DataSourceCode = SeedConsts.DataSources.DefaultCode, - IsTenant = true, - IsBranch = false, - IsOrganizationUnit = false, - Description = AppCodes.Definitions.QuestionPool, - SelectCommandType = SelectCommandTypeEnum.Table, - SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.QuestionPool)), - KeyFieldName = "Id", - KeyFieldDbSourceType = DbType.Guid, - DefaultFilter = "\"IsDeleted\" = 'false'", - SortMode = GridOptions.SortModeSingle, - FilterRowJson = JsonSerializer.Serialize(new GridFilterRowDto { Visible = true }), - HeaderFilterJson = JsonSerializer.Serialize(new { Visible = true }), - SearchPanelJson = JsonSerializer.Serialize(new { Visible = true }), - GroupPanelJson = JsonSerializer.Serialize(new { Visible = true }), - SelectionJson = JsonSerializer.Serialize(new SelectionDto - { - Mode = GridOptions.SelectionModeSingle, - AllowSelectAll = false - }), - ColumnOptionJson = JsonSerializer.Serialize(new - { - ColumnFixingEnabled = true, - ColumnAutoWidth = true, - ColumnChooserEnabled = true, - AllowColumnResizing = true, - AllowColumnReordering = true, - ColumnResizingMode = "widget", - }), - PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto - { - C = AppCodes.Definitions.QuestionPool + ".Create", - R = AppCodes.Definitions.QuestionPool, - U = AppCodes.Definitions.QuestionPool + ".Update", - D = AppCodes.Definitions.QuestionPool + ".Delete", - E = AppCodes.Definitions.QuestionPool + ".Export", - I = AppCodes.Definitions.QuestionPool + ".Import", - A = AppCodes.Definitions.QuestionPool + ".Activity", - }), - DeleteCommand = $"UPDATE \"{TableNameResolver.GetFullTableName(nameof(TableNameEnum.QuestionPool))}\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", - DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "DeleterId", - FieldDbType = DbType.Guid, - Value = "@USERID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "Id", - FieldDbType = DbType.Guid, - Value = "@ID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey } - }), - PagerOptionJson = JsonSerializer.Serialize(new GridPagerOptionDto - { - Visible = true, - AllowedPageSizes = "10,20,50,100", - ShowPageSizeSelector = true, - ShowNavigationButtons = true, - ShowInfo = false, - InfoText = "Page {0} of {1} ({2} items)", - DisplayMode = GridColumnOptions.PagerDisplayModeAdaptive, - ScrollingMode = GridColumnOptions.ScrollingModeStandard, - LoadPanelEnabled = "auto", - LoadPanelText = "Loading..." - }), - EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto - { - Popup = new GridEditingPopupDto() - { - Title = "Question Pool Form", - Width = 500, - Height = 250 - }, - AllowDeleting = true, - AllowAdding = true, - AllowUpdating = true, - SendOnlyChangedFormValuesUpdate = false, - }), - EditingFormJson = JsonSerializer.Serialize(new List() { - new() { Order=1,ColCount=1,ColSpan=2,ItemType="group", Items= - [ - new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 2, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 2, DataField = "Description", ColSpan = 2, EditorType2=EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 3, DataField = "Tags", ColSpan = 2, EditorType2=EditorTypes.dxTagBox }, - ] - } - }), - InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "CreationTime", - FieldDbType = DbType.DateTime, - Value = "@NOW", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "CreatorId", - FieldDbType = DbType.Guid, - Value = "@USERID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "IsDeleted", - FieldDbType = DbType.Boolean, - Value = "false", - CustomValueType = FieldCustomValueTypeEnum.Value } - }), - } - ); - - #region Question Pool Fields - await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { - new() { - ListFormCode = formQuestionPool.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "Id", - Width = 100, - ListOrderNo = 1, - Visible = false, - IsActive = true, - IsDeleted = false, - SortIndex = 0, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Definitions.QuestionPool + ".Create", - R = AppCodes.Definitions.QuestionPool, - U = AppCodes.Definitions.QuestionPool + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formQuestionPool.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Name", - Width = 250, - ListOrderNo = 2, - Visible = true, - IsActive = true, - IsDeleted = false, - SortIndex = 1, - SortDirection = GridColumnOptions.SortOrderAsc, - AllowSearch = true, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Definitions.QuestionPool + ".Create", - R = AppCodes.Definitions.QuestionPool, - U = AppCodes.Definitions.QuestionPool + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formQuestionPool.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Description", - Width = 400, - ListOrderNo = 3, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Definitions.QuestionPool + ".Create", - R = AppCodes.Definitions.QuestionPool, - U = AppCodes.Definitions.QuestionPool + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formQuestionPool.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Tags", - Width = 100, - ListOrderNo = 4, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - LookupJson = JsonSerializer.Serialize(new LookupDto { - DataSourceType = UiLookupDataSourceTypeEnum.Query, - DisplayExpr = "Name", - ValueExpr = "Key", - LookupQuery = LookupQueryValues.QuestionTagValues - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Definitions.QuestionPool + ".Create", - R = AppCodes.Definitions.QuestionPool, - U = AppCodes.Definitions.QuestionPool + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - } - }); - #endregion - } - #endregion - - #region Survey - if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Forms.FormSurvey)) - { - var formSurvey = await _listFormRepository.InsertAsync( - new ListForm() - { - ListFormType = ListFormTypeEnum.Form, - IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 3 - }), - SubFormsJson = JsonSerializer.Serialize(new List() { - new { - TabTitle = "Questions", - TabType = ListFormTabTypeEnum.List, - Code = ListFormCodes.Lists.SurveyQuestion, - Relation = new List() { - new { - ParentFieldName = "Id", - ChildFieldName = "SurveyId" - } - } - }, - new { - TabTitle = "Responses", - TabType = ListFormTabTypeEnum.List, - Code = ListFormCodes.Lists.SurveyResponse, - Relation = new List() { - new { - ParentFieldName = "Id", - ChildFieldName = "SurveyId" - } - } - } - }), - CultureName = LanguageCodes.En, - ListFormCode = ListFormCodes.Forms.FormSurvey, - Name = AppCodes.Hr.Survey, - Title = AppCodes.Hr.Survey, - DataSourceCode = SeedConsts.DataSources.DefaultCode, - IsTenant = true, - IsBranch = false, - IsOrganizationUnit = false, - Description = AppCodes.Hr.Survey, - SelectCommandType = SelectCommandTypeEnum.Table, - SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Survey)), - KeyFieldName = "Id", - KeyFieldDbSourceType = DbType.Guid, - DefaultFilter = "\"IsDeleted\" = 'false'", - SortMode = GridOptions.SortModeSingle, - FilterRowJson = JsonSerializer.Serialize(new GridFilterRowDto { Visible = true }), - HeaderFilterJson = JsonSerializer.Serialize(new { Visible = true }), - SearchPanelJson = JsonSerializer.Serialize(new { Visible = true }), - GroupPanelJson = JsonSerializer.Serialize(new { Visible = true }), - SelectionJson = JsonSerializer.Serialize(new SelectionDto - { - Mode = GridOptions.SelectionModeSingle, - AllowSelectAll = false - }), - ColumnOptionJson = JsonSerializer.Serialize(new - { - ColumnFixingEnabled = true, - ColumnAutoWidth = true, - ColumnChooserEnabled = true, - AllowColumnResizing = true, - AllowColumnReordering = true, - ColumnResizingMode = "widget", - }), - PermissionJson = JsonSerializer.Serialize(new PermissionCrudDto - { - C = AppCodes.Hr.Survey + ".Create", - R = AppCodes.Hr.Survey, - U = AppCodes.Hr.Survey + ".Update", - D = AppCodes.Hr.Survey + ".Delete", - E = AppCodes.Hr.Survey + ".Export", - I = AppCodes.Hr.Survey + ".Import", - A = AppCodes.Hr.Survey + ".Activity", - }), - DeleteCommand = $"UPDATE \"{TableNameResolver.GetFullTableName(nameof(TableNameEnum.Survey))}\" SET \"DeleterId\"=@DeleterId, \"DeletionTime\"=CURRENT_TIMESTAMP, \"IsDeleted\"='true' WHERE \"Id\"=@Id", - DeleteFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "DeleterId", - FieldDbType = DbType.Guid, - Value = "@USERID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "Id", - FieldDbType = DbType.Guid, - Value = "@ID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey } - }), - PagerOptionJson = JsonSerializer.Serialize(new GridPagerOptionDto - { - Visible = true, - AllowedPageSizes = "10,20,50,100", - ShowPageSizeSelector = true, - ShowNavigationButtons = true, - ShowInfo = false, - InfoText = "Page {0} of {1} ({2} items)", - DisplayMode = GridColumnOptions.PagerDisplayModeAdaptive, - ScrollingMode = GridColumnOptions.ScrollingModeStandard, - LoadPanelEnabled = "auto", - LoadPanelText = "Loading..." - }), - EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto - { - Popup = new GridEditingPopupDto() - { - Title = "Survey Form", - Width = 500, - Height = 450 - }, - AllowDeleting = true, - AllowAdding = true, - AllowUpdating = true, - SendOnlyChangedFormValuesUpdate = false, - }), - InsertFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { - new() { - FieldName = "CreationTime", - FieldDbType = DbType.DateTime, - Value = "@NOW", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "CreatorId", - FieldDbType = DbType.Guid, - Value = "@USERID", - CustomValueType = FieldCustomValueTypeEnum.CustomKey }, - new() { - FieldName = "IsDeleted", - FieldDbType = DbType.Boolean, - Value = "false", - CustomValueType = FieldCustomValueTypeEnum.Value } - }), - EditingFormJson = JsonSerializer.Serialize(new List() - { - new() { - Order=1, ColCount=1, ColSpan=2, ItemType="group", Items = - [ - new EditingFormItemDto { Order = 1, DataField = "Title", IsRequired = true, EditorType2 = EditorTypes.dxTextBox }, - new EditingFormItemDto { Order = 2, DataField = "Description", IsRequired = true, EditorType2 = EditorTypes.dxTextArea }, - new EditingFormItemDto { Order = 3, DataField = "Deadline", IsRequired = true, EditorType2 = EditorTypes.dxDateBox }, - new EditingFormItemDto { Order = 4, DataField = "Status", IsRequired = true, EditorType2 = EditorTypes.dxSelectBox }, - new EditingFormItemDto { Order = 5, DataField = "IsAnonymous", IsRequired = true, EditorType2 = EditorTypes.dxCheckBox }, - ] - } - }), - FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] - { - new() { - FieldName = "IsAnonymous", - FieldDbType = DbType.Boolean, - Value = "false", - CustomValueType = FieldCustomValueTypeEnum.Value }, - new() { - FieldName = "Status", - FieldDbType = DbType.String, - Value = "draft", - CustomValueType = FieldCustomValueTypeEnum.Value } - }), - } - ); - - #region Survey Fields - await _listFormFieldRepository.InsertManyAsync([ - new() { - ListFormCode = formSurvey.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.Guid, - FieldName = "Id", - Width = 100, - ListOrderNo = 1, - Visible = false, - IsActive = true, - IsDeleted = false, - SortIndex = 0, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Intranet.Announcement + ".Create", - R = AppCodes.Intranet.Announcement, - U = AppCodes.Intranet.Announcement + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formSurvey.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Title", - Width = 200, - ListOrderNo = 2, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Hr.Survey + ".Create", - R = AppCodes.Hr.Survey, - U = AppCodes.Hr.Survey + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formSurvey.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.Date, - FieldName = "Deadline", - Width = 100, - ListOrderNo = 3, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Hr.Survey + ".Create", - R = AppCodes.Hr.Survey, - U = AppCodes.Hr.Survey + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formSurvey.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.Int32, - FieldName = "Responses", - Width = 100, - ListOrderNo = 4, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Hr.Survey + ".Create", - R = AppCodes.Hr.Survey, - U = AppCodes.Hr.Survey + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formSurvey.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.String, - FieldName = "Status", - Width = 100, - ListOrderNo = 5, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - LookupJson = JsonSerializer.Serialize(new LookupDto - { - DataSourceType = UiLookupDataSourceTypeEnum.StaticData, - DisplayExpr = "name", - ValueExpr = "key", - LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] { - new () { Key= "draft", Name= "Draft" }, - new () { Key= "active", Name= "Active" }, - new () { Key= "closed", Name= "Closed" }, - }), - }), - ValidationRuleJson = JsonSerializer.Serialize(new ValidationRuleDto[] { - new ValidationRuleDto() { Type = Enum.GetName(UiColumnValidationRuleTypeEnum.required) } - }), - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Hr.Survey + ".Create", - R = AppCodes.Hr.Survey, - U = AppCodes.Hr.Survey + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - new() { - ListFormCode = formSurvey.ListFormCode, - RoleId = null, - UserId = null, - CultureName = LanguageCodes.En, - SourceDbType = DbType.Boolean, - FieldName = "IsAnonymous", - Width = 100, - ListOrderNo = 6, - Visible = true, - IsActive = true, - IsDeleted = false, - AllowSearch = true, - ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto - { - AllowReordering = true, - }), - PermissionJson = JsonSerializer.Serialize(new ListFormFieldPermissionDto - { - C = AppCodes.Hr.Survey + ".Create", - R = AppCodes.Hr.Survey, - U = AppCodes.Hr.Survey + ".Update", - E = true, - I = true, - Deny = false - }), - PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto - { - IsPivot = true - }) - }, - ]); - #endregion - } - #endregion - - #endregion - - #region List - #region Tenant if (!await _listFormRepository.AnyAsync(a => a.ListFormCode == ListFormCodes.Lists.Tenant)) { @@ -2894,15 +55,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Tenant, Name = TenantManagementPermissions.Tenants.Default, @@ -3063,8 +216,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -3094,8 +245,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -3126,8 +275,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "OrganizationName", @@ -3158,8 +305,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Founder", @@ -3190,8 +335,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "VknTckn", @@ -3222,8 +365,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "TaxOffice", @@ -3254,8 +395,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Country", @@ -3294,8 +433,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "City", @@ -3337,8 +474,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "District", @@ -3380,8 +515,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Street", @@ -3422,8 +555,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Address1", @@ -3454,8 +585,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Address2", @@ -3486,8 +615,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "PostalCode", @@ -3518,8 +645,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Email", @@ -3554,8 +679,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Website", @@ -3586,8 +709,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Mobile", @@ -3618,8 +739,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Phone", @@ -3650,8 +769,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Fax", @@ -3682,8 +799,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsActive", @@ -3713,8 +828,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormTenants.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "MenuGroup", @@ -3764,15 +877,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Branch, Name = AppCodes.Branches, @@ -3940,8 +1045,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -3971,8 +1074,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "TenantId", @@ -4008,8 +1109,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Code", @@ -4040,8 +1139,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -4072,8 +1169,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "VknTckn", @@ -4104,8 +1199,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "TaxOffice", @@ -4138,8 +1231,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Country", @@ -4178,8 +1269,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "City", @@ -4221,8 +1310,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "District", @@ -4264,8 +1351,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Street", @@ -4307,8 +1392,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Address1", @@ -4339,8 +1422,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Address2", @@ -4371,8 +1452,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "PostalCode", @@ -4403,8 +1482,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Email", @@ -4439,8 +1516,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Website", @@ -4471,8 +1546,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Mobile", @@ -4503,8 +1576,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Phone", @@ -4535,8 +1606,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Fax", @@ -4567,8 +1636,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormBranches.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsActive", @@ -4608,15 +1675,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.PermissionGroup, Name = AbpIdentity.PermissionGroups.Default, @@ -5897,15 +2956,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Language, Name = AppCodes.Languages.Language, @@ -6235,15 +3286,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.LanguageText, Name = AppCodes.Languages.LanguageText, @@ -7160,15 +4203,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Listform, Name = AppCodes.Listforms.Listform, @@ -8134,15 +5169,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.SettingDefinition, Name = AppCodes.Settings.SettingDefinitions, @@ -8883,15 +5910,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.DataSource, Name = AppCodes.Listforms.DataSource, @@ -9171,15 +6190,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.BackgroundWorker, Name = AppCodes.BackgroundWorkers, @@ -9621,15 +6632,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.NotificationRule, Name = AppCodes.Notifications.NotificationRules, @@ -10087,15 +7090,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Notification, Name = AppCodes.Notifications.Notification, @@ -10478,15 +7473,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.IpRestriction, Name = AppCodes.IdentityManagement.IpRestrictions, @@ -10768,15 +7755,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.CustomEndpoint, Name = AppCodes.DeveloperKits.CustomEndpoints, @@ -11224,15 +8203,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.GlobalSearch, Name = AppCodes.Settings.GlobalSearch, @@ -11541,15 +8512,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.AuditLog, Name = AppCodes.AuditLogs, @@ -11925,15 +8888,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.ClaimType, Name = AppCodes.IdentityManagement.ClaimTypes, @@ -12076,8 +9031,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormClaimTypes.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -12107,8 +9060,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormClaimTypes.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -12139,8 +9090,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormClaimTypes.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int16, FieldName = "ValueType", @@ -12183,8 +9132,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormClaimTypes.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "Required", @@ -12214,8 +9161,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormClaimTypes.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsStatic", @@ -12245,8 +9190,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormClaimTypes.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Regex", @@ -12277,8 +9220,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormClaimTypes.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "RegexDescription", @@ -12309,8 +9250,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormClaimTypes.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Description", @@ -12351,15 +9290,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Route, Name = AppCodes.Routes, @@ -12682,15 +9613,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.ReportCategory, Name = AppCodes.Reports.Categories, @@ -12940,15 +9863,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.About, Name = AppCodes.About, @@ -13201,15 +10116,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Service, Name = AppCodes.Services, @@ -13547,15 +10454,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Product, Name = AppCodes.Orders.Products, @@ -13949,15 +10848,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.PaymentMethod, Name = AppCodes.Orders.PaymentMethods, @@ -14194,15 +11085,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.InstallmentOption, Name = AppCodes.Orders.InstallmentOptions, @@ -14439,15 +11322,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.PurchaseOrder, Name = AppCodes.Orders.PurchaseOrders, @@ -15161,15 +12036,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.BlogCategory, Name = AppCodes.BlogManagement.BlogCategory, @@ -15528,15 +12395,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.BlogPost, Name = AppCodes.BlogManagement.BlogPosts, @@ -16096,15 +12955,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Demo, Name = AppCodes.Demos, @@ -16493,15 +13344,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Contact, Name = AppCodes.Contact, @@ -16917,15 +13760,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.ContactTag, Name = AppCodes.Parameters.ContactTag, @@ -17164,15 +13999,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.ContactTitle, Name = AppCodes.Parameters.ContactTitle, @@ -17411,15 +14238,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Currency, Name = AppCodes.Parameters.Currency, @@ -17763,15 +14582,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.CountryGroup, Name = AppCodes.Parameters.CountryGroup, @@ -17969,15 +14780,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Country, Name = AppCodes.Parameters.Country, @@ -18242,7 +15045,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency DataSourceType = UiLookupDataSourceTypeEnum.Query, DisplayExpr = "name", ValueExpr = "key", - LookupQuery = LookupQueryValues.CurrencyValues, + LookupQuery = LookupQueryValues.CurrencyValues, }), ColumnCustomizationJson = JsonSerializer.Serialize(new ColumnCustomizationDto { @@ -18374,15 +15177,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.City, Name = AppCodes.Parameters.City, @@ -18680,15 +15475,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.District, Name = AppCodes.Parameters.District, @@ -19061,15 +15848,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Sector, Name = AppCodes.Definitions.Sector, @@ -19270,15 +16049,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.SkillType, Name = AppCodes.Definitions.SkillType, @@ -19486,15 +16257,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.SkillLevel, Name = AppCodes.Definitions.SkillLevel, @@ -19630,8 +16393,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormSkillLevel.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -19664,8 +16425,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSkillLevel.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -19701,8 +16460,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormSkillLevel.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "Progress", @@ -19733,8 +16490,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormSkillLevel.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsDefault", @@ -19768,8 +16523,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormSkillLevel.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "SkillTypeId", @@ -19819,15 +16572,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Skill, Name = AppCodes.Definitions.Skill, @@ -19955,8 +16700,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormSkill.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -19990,8 +16733,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormSkill.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -20027,8 +16768,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormSkill.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "SkillTypeId", @@ -20078,15 +16817,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.UomCategory, Name = AppCodes.Definitions.UomCategory, @@ -20293,15 +17024,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Uom, Name = AppCodes.Definitions.Uom, @@ -20433,8 +17156,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormUom.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -20468,8 +17189,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormUom.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -20505,8 +17224,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormUom.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Type", @@ -20550,8 +17267,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormUom.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "Ratio", @@ -20587,8 +17302,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormUom.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "Rounding", @@ -20624,8 +17337,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new ListFormField { ListFormCode = listFormUom.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "UomCategoryId", @@ -20797,8 +17508,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormBehavior.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -20831,8 +17540,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBehavior.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -21000,8 +17707,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormDisease.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -21033,8 +17738,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormDisease.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -21202,8 +17905,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormDocument.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -21235,8 +17936,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormDocument.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -21405,8 +18104,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormEducationStatus.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -21438,8 +18135,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEducationStatus.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -21472,8 +18167,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEducationStatus.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "Order", @@ -21647,8 +18340,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormMeetingMethod.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -21680,8 +18371,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormMeetingMethod.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -21716,8 +18405,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormMeetingMethod.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Type", @@ -21942,8 +18629,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormMeetingResult.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -21975,8 +18660,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormMeetingResult.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -22009,8 +18692,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormMeetingResult.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Order", @@ -22225,8 +18906,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormProgram.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -22258,8 +18937,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormProgram.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -22294,8 +18971,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormProgram.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -22478,8 +19153,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormInteresting.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -22511,8 +19184,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormInteresting.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -22547,8 +19218,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormInteresting.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -22732,8 +19401,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormSalesRejectionReason.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -22766,8 +19433,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSalesRejectionReason.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -22843,8 +19508,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSalesRejectionReason.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -23027,8 +19690,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormSource.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -23060,8 +19721,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSource.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -23096,8 +19755,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSource.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -23272,8 +19929,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormVaccine.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -23306,8 +19961,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormVaccine.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -23475,8 +20128,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormNoteType.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -23509,8 +20160,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormNoteType.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -23686,8 +20335,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormClassCancellationReason.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -23719,8 +20366,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormClassCancellationReason.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -23755,8 +20400,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormClassCancellationReason.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -23980,8 +20623,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { new() { ListFormCode = listFormWorkHour.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -24013,8 +20654,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormWorkHour.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -24464,8 +21103,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { new() { ListFormCode = listFormVehicle.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -24494,8 +21131,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormVehicle.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Plate", @@ -25004,8 +21639,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormPsychologist.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -25334,8 +21967,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormLawyer.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -25898,8 +22529,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormRegistrationType.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -26172,8 +22801,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormRegistrationMethod.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -26484,8 +23111,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormClassType.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -26849,8 +23474,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormClass.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -27164,8 +23787,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormLevel.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -27625,8 +24246,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormLessonPeriod.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -28115,8 +24734,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency // Id new() { ListFormCode = listFormSchedule.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -28688,15 +25305,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.Bank, Name = AppCodes.Accounting.Bank, @@ -28848,8 +25457,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormBank.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -28885,8 +25492,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormCode = listFormBank.ListFormCode, CultureName = LanguageCodes.En, - RoleId = null, - UserId = null, SourceDbType = DbType.Guid, FieldName = "BranchId", Width = 150, @@ -28917,8 +25522,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBank.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -28953,8 +25556,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBank.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "IdentifierCode", @@ -28987,8 +25588,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBank.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Address1", @@ -29018,8 +25617,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBank.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Address2", @@ -29049,8 +25646,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBank.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Country", @@ -29088,8 +25683,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBank.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "City", @@ -29130,8 +25723,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBank.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "District", @@ -29172,8 +25763,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBank.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "PostalCode", @@ -29203,8 +25792,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBank.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Phone", @@ -29234,8 +25821,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBank.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Email", @@ -29280,15 +25865,7 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency { ListFormType = ListFormTypeEnum.List, IsSubForm = false, - LayoutJson = JsonSerializer.Serialize(new LayoutDto() - { - Grid = true, - Card = true, - Pivot = true, - Chart = true, - DefaultLayout = "grid", - CardLayoutColumn = 4 - }), + LayoutJson = JsonSerializer.Serialize(new LayoutDto() { Grid = true, Card = true, Pivot = true, Chart = true, DefaultLayout = "grid", CardLayoutColumn = 4 }), CultureName = LanguageCodes.En, ListFormCode = ListFormCodes.Lists.BankAccount, Name = AppCodes.Accounting.BankAccount, @@ -29425,8 +26002,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormBankAccount.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -29459,8 +26034,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBankAccount.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "BankId", @@ -29497,8 +26070,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBankAccount.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "AccountNumber", @@ -29533,8 +26104,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBankAccount.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "AccountOwner", @@ -29568,8 +26137,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBankAccount.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "CurrencyId", @@ -29606,8 +26173,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBankAccount.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "CanTransferMoney", @@ -29773,8 +26338,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormTag.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -29807,8 +26370,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTag.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -29843,8 +26404,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTag.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Description", @@ -29874,8 +26433,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTag.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Color", @@ -30050,8 +26607,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormQuestionPool.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -30084,8 +26639,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestionPool.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -30120,8 +26673,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestionPool.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Description", @@ -30151,8 +26702,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestionPool.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Tags", @@ -30354,8 +26903,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -30388,8 +26935,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "QuestionPoolId", @@ -30428,8 +26973,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "QuestionType", @@ -30478,8 +27021,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "Points", @@ -30513,8 +27054,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Title", @@ -30544,8 +27083,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Content", @@ -30575,8 +27112,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "MediaType", @@ -30616,8 +27151,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "MediaUrl", @@ -30647,8 +27180,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "CorrectAnswer", @@ -30678,8 +27209,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Difficulty", @@ -30720,8 +27249,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "TimeLimit", @@ -30751,8 +27278,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Explanation", @@ -30934,8 +27459,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormEmploymentType.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -30968,8 +27491,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmploymentType.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -31154,8 +27675,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormBadge.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -31188,8 +27707,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBadge.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Code", @@ -31222,8 +27739,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBadge.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -31256,8 +27771,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBadge.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Description", @@ -31287,8 +27800,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBadge.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Icon", @@ -31341,8 +27852,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBadge.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Color", @@ -31372,8 +27881,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBadge.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "BackgroundColor", @@ -31403,8 +27910,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBadge.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Category", @@ -31452,8 +27957,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBadge.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Criteria", @@ -31483,8 +27986,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBadge.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "Points", @@ -31516,8 +28017,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBadge.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Rarity", @@ -31560,8 +28059,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormBadge.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsActive", @@ -31753,8 +28250,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormJobPosition.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -31787,8 +28282,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormJobPosition.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Code", @@ -31821,8 +28314,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormJobPosition.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -31855,8 +28346,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormJobPosition.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Description", @@ -31885,8 +28374,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormJobPosition.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "DepartmentId", @@ -31923,8 +28410,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormJobPosition.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Level", @@ -31973,8 +28458,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormJobPosition.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "MinSalary", @@ -32006,8 +28489,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormJobPosition.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "MaxSalary", @@ -32039,8 +28520,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormJobPosition.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "CurrencyId", @@ -32077,8 +28556,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormJobPosition.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "RequiredSkills", @@ -32108,8 +28585,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormJobPosition.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Responsibilities", @@ -32139,8 +28614,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormJobPosition.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Qualifications", @@ -32170,8 +28643,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormJobPosition.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsActive", @@ -32359,8 +28830,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormDepartment.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -32393,8 +28862,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormDepartment.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Code", @@ -32427,8 +28894,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormDepartment.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -32461,8 +28926,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormDepartment.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Description", @@ -32491,8 +28954,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormDepartment.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "ParentDepartmentId", @@ -32529,8 +28990,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormDepartment.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "ManagerId", @@ -32570,8 +29029,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormDepartment.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "CostCenterId", @@ -32611,8 +29068,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormDepartment.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "Budget", @@ -32644,8 +29099,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormDepartment.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsActive", @@ -32828,8 +29281,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormCostCenter.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -32862,8 +29313,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormCostCenter.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Code", @@ -32896,8 +29345,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormCostCenter.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -32930,8 +29377,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormCostCenter.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Description", @@ -32960,8 +29405,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormCostCenter.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "ParentCostCenterId", @@ -32998,8 +29441,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormCostCenter.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "ResponsibleEmployeeId", @@ -33039,8 +29480,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormCostCenter.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "DepartmentId", @@ -33080,8 +29519,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormCostCenter.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "CostCenterType", @@ -33127,8 +29564,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormCostCenter.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "BudgetedAmount", @@ -33160,8 +29595,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormCostCenter.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "ActualAmount", @@ -33193,8 +29626,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormCostCenter.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "CurrencyId", @@ -33231,8 +29662,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormCostCenter.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "FiscalYear", @@ -33264,8 +29693,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormCostCenter.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsActive", @@ -33484,8 +29911,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -33518,8 +29943,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Code", @@ -33552,8 +29975,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "FullName", @@ -33586,8 +30007,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "NationalId", @@ -33616,8 +30035,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "BirthDate", @@ -33647,8 +30064,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Gender", @@ -33692,8 +30107,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "MaritalStatus", @@ -33738,8 +30151,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "EmployeeStatus", @@ -33785,8 +30196,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsActive", @@ -33817,8 +30226,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Address1", @@ -33848,8 +30255,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Address2", @@ -33879,8 +30284,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Country", @@ -33918,8 +30321,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "City", @@ -33960,8 +30361,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "District", @@ -34002,8 +30401,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "PostalCode", @@ -34033,8 +30430,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Phone", @@ -34064,8 +30459,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "PersonalPhone", @@ -34095,8 +30488,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Email", @@ -34131,8 +30522,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "EmergencyContactName", @@ -34162,8 +30551,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "EmergencyContactRelationship", @@ -34193,8 +30580,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "EmergencyContactPhone", @@ -34224,8 +30609,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "HireDate", @@ -34255,8 +30638,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "TerminationDate", @@ -34286,8 +30667,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "EmploymentTypeId", @@ -34324,8 +30703,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "JobPositionId", @@ -34362,8 +30739,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "DepartmentId", @@ -34400,8 +30775,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "WorkLocation", @@ -34431,8 +30804,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "ManagerId", @@ -34469,8 +30840,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "BaseSalary", @@ -34502,8 +30871,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "CurrencyId", @@ -34540,8 +30907,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "PayrollGroup", @@ -34582,8 +30947,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "BankAccountId", @@ -34620,8 +30983,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEmployee.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "BadgeId", @@ -34845,8 +31206,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormLeave.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -34879,8 +31238,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormLeave.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "EmployeeId", @@ -34920,8 +31277,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormLeave.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "LeaveType", @@ -34970,8 +31325,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormLeave.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "StartDate", @@ -35003,8 +31356,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormLeave.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "EndDate", @@ -35037,8 +31388,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormLeave.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "TotalDays", @@ -35072,8 +31421,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormLeave.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsHalfDay", @@ -35103,8 +31450,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormLeave.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Reason", @@ -35137,8 +31482,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormLeave.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -35183,8 +31526,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormLeave.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "AppliedDate", @@ -35214,8 +31555,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormLeave.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "ApprovedById", @@ -35252,8 +31591,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormLeave.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "ApprovedDate", @@ -35283,8 +31620,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormLeave.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "RejectionReason", @@ -35496,8 +31831,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormOvertime.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -35530,8 +31863,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormOvertime.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "EmployeeId", @@ -35571,8 +31902,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormOvertime.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "StartTime", @@ -35604,8 +31933,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormOvertime.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "EndTime", @@ -35638,8 +31965,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormOvertime.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "TotalHours", @@ -35673,8 +31998,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormOvertime.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Reason", @@ -35707,8 +32030,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormOvertime.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Rate", @@ -35752,8 +32073,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormOvertime.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "Amount", @@ -35785,8 +32104,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormOvertime.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -35831,8 +32148,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormOvertime.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "Date", @@ -35862,8 +32177,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormOvertime.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "ApprovedById", @@ -35900,8 +32213,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormOvertime.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "ApprovedDate", @@ -35931,8 +32242,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormOvertime.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "RejectionReason", @@ -36199,8 +32508,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormPayroll.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -36233,8 +32540,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPayroll.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "EmployeeId", @@ -36274,8 +32579,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPayroll.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "PeriodYear", @@ -36308,8 +32611,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPayroll.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "PeriodMonth", @@ -36362,8 +32663,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPayroll.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "PaymentDate", @@ -36395,8 +32694,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPayroll.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "BaseSalary", @@ -36431,8 +32728,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPayroll.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "Overtime", @@ -36464,8 +32759,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPayroll.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "Bonus", @@ -36497,8 +32790,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPayroll.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "GrossSalary", @@ -36530,8 +32821,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPayroll.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "NetSalary", @@ -36563,8 +32852,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPayroll.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "Tax", @@ -36596,8 +32883,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPayroll.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "SocialSecurity", @@ -36630,8 +32915,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormPayroll.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -36834,8 +33117,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormTemplate360.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -36868,8 +33149,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTemplate360.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -36902,8 +33181,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTemplate360.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Description", @@ -36933,8 +33210,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTemplate360.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "AssessorTypes", @@ -37144,8 +33419,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormPerformans360.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -37178,8 +33451,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPerformans360.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -37212,8 +33483,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPerformans360.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Description", @@ -37243,8 +33512,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPerformans360.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "TemplateId", @@ -37284,8 +33551,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPerformans360.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "StartDate", @@ -37317,8 +33582,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPerformans360.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "EndDate", @@ -37351,8 +33614,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPerformans360.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -37397,8 +33658,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPerformans360.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "DepartmentId", @@ -37438,8 +33697,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormPerformans360.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "TargetEmployees", @@ -37613,8 +33870,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormEventType.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -37646,8 +33901,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEventType.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -37815,8 +34068,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormEventCategory.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -37848,8 +34099,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormEventCategory.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -38024,8 +34273,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormEvent.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -38513,8 +34760,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -38547,8 +34792,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Title", @@ -38581,8 +34824,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Description", @@ -38612,8 +34853,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Instructor", @@ -38646,8 +34885,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Category", @@ -38693,8 +34930,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Type", @@ -38738,8 +34973,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Location", @@ -38769,8 +35002,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Thumbnail", @@ -38800,8 +35031,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "Duration", @@ -38831,8 +35060,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "StartDate", @@ -38865,8 +35092,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "EndDate", @@ -38899,8 +35124,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "MaxParticipants", @@ -38930,8 +35153,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "Enrolled", @@ -38961,8 +35182,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormTraining.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -39161,8 +35380,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormMeal.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -39510,8 +35727,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormReservation.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -39544,8 +35759,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormReservation.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Type", @@ -39589,8 +35802,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormReservation.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "ResourceName", @@ -39620,8 +35831,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormReservation.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "EmployeeId", @@ -39661,8 +35870,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormReservation.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.DateTime, FieldName = "StartDate", @@ -39695,8 +35902,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormReservation.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.DateTime, FieldName = "EndDate", @@ -39729,8 +35934,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormReservation.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Purpose", @@ -39760,8 +35963,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormReservation.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "Participants", @@ -39791,8 +35992,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormReservation.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Notes", @@ -39822,8 +36021,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormReservation.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -40018,8 +36215,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormShuttleRoute.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -40052,8 +36247,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormShuttleRoute.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -40086,8 +36279,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormShuttleRoute.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Type", @@ -40130,8 +36321,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormShuttleRoute.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "DepartureTime", @@ -40164,8 +36353,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormShuttleRoute.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "ArrivalTime", @@ -40198,8 +36385,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormShuttleRoute.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "Capacity", @@ -40229,8 +36414,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormShuttleRoute.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "Available", @@ -40260,8 +36443,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormShuttleRoute.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Route", @@ -40466,8 +36647,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormAnnouncement.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -40500,8 +36679,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormAnnouncement.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Title", @@ -40534,8 +36711,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormAnnouncement.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Excerpt", @@ -40568,8 +36743,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormAnnouncement.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Content", @@ -40602,8 +36775,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormAnnouncement.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "ImageUrl", @@ -40633,8 +36804,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormAnnouncement.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Category", @@ -40679,8 +36848,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormAnnouncement.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "EmployeeId", @@ -40720,8 +36887,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormAnnouncement.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.DateTime, FieldName = "PublishDate", @@ -40754,8 +36919,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormAnnouncement.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.DateTime, FieldName = "ExpiryDate", @@ -40785,8 +36948,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormAnnouncement.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsPinned", @@ -40816,8 +36977,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormAnnouncement.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Departments", @@ -40854,8 +37013,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormAnnouncement.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Attachments", @@ -41047,8 +37204,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormVisitor.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -41081,8 +37236,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormVisitor.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "FullName", @@ -41115,8 +37268,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormVisitor.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "CompanyName", @@ -41149,8 +37300,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormVisitor.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Email", @@ -41184,8 +37333,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormVisitor.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "Phone", @@ -41219,8 +37366,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormVisitor.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Purpose", @@ -41254,8 +37399,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormVisitor.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.DateTime, FieldName = "VisitDate", @@ -41288,8 +37431,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormVisitor.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.DateTime, FieldName = "CheckIn", @@ -41319,8 +37460,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormVisitor.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.DateTime, FieldName = "CheckOut", @@ -41350,8 +37489,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormVisitor.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "EmployeeId", @@ -41388,8 +37525,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormVisitor.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -41597,8 +37732,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormExpense.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -41631,8 +37764,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormExpense.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "EmployeeId", @@ -41672,8 +37803,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormExpense.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Category", @@ -41717,8 +37846,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormExpense.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Decimal, FieldName = "Amount", @@ -41751,8 +37878,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormExpense.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "CurrencyId", @@ -41792,8 +37917,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormExpense.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "RequestDate", @@ -41826,8 +37949,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormExpense.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Description", @@ -41857,8 +37978,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormExpense.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Project", @@ -41888,8 +38007,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormExpense.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -41933,8 +38050,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormExpense.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Notes", @@ -41964,8 +38079,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormExpense.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "RejectionReason", @@ -42157,8 +38270,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormSurvey.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -42191,8 +38302,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurvey.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Title", @@ -42225,8 +38334,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurvey.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Date, FieldName = "Deadline", @@ -42259,8 +38366,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurvey.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "Responses", @@ -42290,8 +38395,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurvey.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Status", @@ -42335,8 +38438,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurvey.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsAnonymous", @@ -42521,8 +38622,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormSurveyQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -42555,8 +38654,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurveyQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "SurveyId", @@ -42596,8 +38693,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurveyQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "Order", @@ -42630,8 +38725,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurveyQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "QuestionText", @@ -42664,8 +38757,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurveyQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Type", @@ -42708,8 +38799,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurveyQuestion.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsRequired", @@ -42886,8 +38975,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormSurveyResponse.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -42920,8 +39007,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurveyResponse.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "SurveyId", @@ -42961,8 +39046,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurveyResponse.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "EmployeeId", @@ -43002,8 +39085,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurveyResponse.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.DateTime, FieldName = "SubmissionTime", @@ -43036,8 +39117,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSurveyResponse.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.DateTime, FieldName = "CreationTime", @@ -43215,8 +39294,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync([ new() { ListFormCode = listFormSocialPost.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -43249,8 +39326,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSocialPost.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "EmployeeId", @@ -43290,8 +39365,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSocialPost.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Content", @@ -43324,8 +39397,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSocialPost.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Int32, FieldName = "LikeCount", @@ -43355,8 +39426,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSocialPost.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsLiked", @@ -43386,8 +39455,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormSocialPost.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsOwnPost", @@ -43561,8 +39628,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormMaterialType.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -43594,8 +39659,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormMaterialType.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Code", @@ -43628,8 +39691,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormMaterialType.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -43664,8 +39725,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormMaterialType.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Description", @@ -43696,8 +39755,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency new() { ListFormCode = listFormMaterialType.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsActive", @@ -43871,8 +39928,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency await _listFormFieldRepository.InsertManyAsync(new ListFormField[] { new() { ListFormCode = listFormMaterialGroup.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "Id", @@ -43904,8 +39959,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormMaterialGroup.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Code", @@ -43938,8 +39991,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormMaterialGroup.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", @@ -43972,8 +40023,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormMaterialGroup.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Description", @@ -44003,8 +40052,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormMaterialGroup.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Boolean, FieldName = "IsActive", @@ -44034,8 +40081,6 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency }, new() { ListFormCode = listFormMaterialGroup.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "ParentGroupId", @@ -44068,12 +40113,10 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency PivotSettingsJson = JsonSerializer.Serialize(new ListFormFieldPivotSettingsDto { IsPivot = true - }) + }) }, new() { ListFormCode = listFormMaterialGroup.ListFormCode, - RoleId = null, - UserId = null, CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "HierarchyPath", @@ -44108,7 +40151,5 @@ public class ListFormSeeder : IDataSeedContributor, ITransientDependency } #endregion - - #endregion } } diff --git a/api/src/Kurs.Platform.Domain.Shared/Enums/TablePrefixEnum.cs b/api/src/Kurs.Platform.Domain.Shared/Enums/TablePrefixEnum.cs index 5c30241b..b636cffb 100644 --- a/api/src/Kurs.Platform.Domain.Shared/Enums/TablePrefixEnum.cs +++ b/api/src/Kurs.Platform.Domain.Shared/Enums/TablePrefixEnum.cs @@ -4,13 +4,13 @@ namespace Kurs.Platform; public static class TablePrefix { - private const string PlatformPrefix = "P"; + private const string HostPrefix = "H"; private const string TenantPrefix = "T"; private const string BranchPrefix = "B"; public static string PlatformByName(MenuPrefix MenuGroup, TableNameEnum tableName) { - return $"{MenuPrefixExtensions.ToPrefix(MenuGroup)}_{PlatformPrefix}_{tableName}"; + return $"{MenuPrefixExtensions.ToPrefix(MenuGroup)}_{HostPrefix}_{tableName}"; } public static string TenantByName(MenuPrefix MenuGroup, TableNameEnum tableName) diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101082915_Initial.Designer.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101111255_Initial.Designer.cs similarity index 99% rename from api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101082915_Initial.Designer.cs rename to api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101111255_Initial.Designer.cs index 24a360bf..fb77c330 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101082915_Initial.Designer.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101111255_Initial.Designer.cs @@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; namespace Kurs.Platform.Migrations { [DbContext(typeof(PlatformDbContext))] - [Migration("20251101082915_Initial")] + [Migration("20251101111255_Initial")] partial class Initial { /// @@ -86,7 +86,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Plat_P_Language", (string)null); + b.ToTable("Plat_H_Language", (string)null); }); modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b => @@ -140,7 +140,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("ResourceName", "Key") .IsUnique(); - b.ToTable("Plat_P_LanguageKey", (string)null); + b.ToTable("Plat_H_LanguageKey", (string)null); }); modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b => @@ -203,7 +203,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("ResourceName", "Key"); - b.ToTable("Plat_P_LanguageText", (string)null); + b.ToTable("Plat_H_LanguageText", (string)null); }); modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueue", b => @@ -294,7 +294,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("TableName"); - b.ToTable("Plat_P_BackgroundWorker_MailQueue", (string)null); + b.ToTable("Plat_H_BackgroundWorker_MailQueue", (string)null); }); modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueEvents", b => @@ -356,7 +356,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("AwsMessageId"); - b.ToTable("Plat_P_BackgroundWorker_MailQueueEvents", (string)null); + b.ToTable("Plat_H_BackgroundWorker_MailQueueEvents", (string)null); }); modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueTableFormat", b => @@ -422,7 +422,7 @@ namespace Kurs.Platform.Migrations .IsUnique() .HasDatabaseName("IX_MailQueueTableFormat"); - b.ToTable("Plat_P_BackgroundWorker_MailQueueTableFormat", (string)null); + b.ToTable("Plat_H_BackgroundWorker_MailQueueTableFormat", (string)null); }); modelBuilder.Entity("Kurs.Notifications.Entities.Notification", b => @@ -500,7 +500,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("NotificationRuleId"); - b.ToTable("Plat_P_Notification", (string)null); + b.ToTable("Plat_H_Notification", (string)null); }); modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b => @@ -569,7 +569,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Plat_P_NotificationRule", (string)null); + b.ToTable("Plat_H_NotificationRule", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.About", b => @@ -704,7 +704,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Plat_P_AiBot", (string)null); + b.ToTable("Plat_H_AiBot", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.Announcement", b => @@ -1009,7 +1009,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Plat_P_BackgroundWorker", (string)null); + b.ToTable("Plat_H_BackgroundWorker", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.Badge", b => @@ -1753,7 +1753,7 @@ namespace Kurs.Platform.Migrations .IsUnique() .HasFilter("[Country] IS NOT NULL"); - b.ToTable("Sas_P_City", (string)null); + b.ToTable("Sas_H_City", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.Class", b => @@ -2404,7 +2404,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Sas_P_ContactTag", (string)null); + b.ToTable("Sas_H_ContactTag", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.ContactTitle", b => @@ -2453,7 +2453,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Sas_P_ContactTitle", (string)null); + b.ToTable("Sas_H_ContactTitle", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.CostCenter", b => @@ -2624,7 +2624,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("GroupName"); - b.ToTable("Sas_P_Country", (string)null); + b.ToTable("Sas_H_Country", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.CountryGroup", b => @@ -2672,7 +2672,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("Name") .IsUnique(); - b.ToTable("Sas_P_CountryGroup", (string)null); + b.ToTable("Sas_H_CountryGroup", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.Currency", b => @@ -2738,7 +2738,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Sas_P_Currency", (string)null); + b.ToTable("Sas_H_Currency", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.CustomComponent", b => @@ -3212,7 +3212,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Sas_P_DataSource", (string)null); + b.ToTable("Sas_H_DataSource", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.Demo", b => @@ -3500,7 +3500,7 @@ namespace Kurs.Platform.Migrations .IsUnique() .HasFilter("[Country] IS NOT NULL AND [Township] IS NOT NULL AND [Street] IS NOT NULL AND [ZipCode] IS NOT NULL"); - b.ToTable("Sas_P_District", (string)null); + b.ToTable("Sas_H_District", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.Document", b => @@ -5144,7 +5144,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Sas_P_ListForm", (string)null); + b.ToTable("Sas_H_ListForm", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.ListFormCustomization", b => @@ -5209,7 +5209,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("ListFormCode"); - b.ToTable("Sas_P_ListFormCustomization", (string)null); + b.ToTable("Sas_H_ListFormCustomization", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.ListFormField", b => @@ -5376,7 +5376,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("ListFormCode"); - b.ToTable("Sas_P_ListFormField", (string)null); + b.ToTable("Sas_H_ListFormField", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.ListFormImport", b => @@ -5436,7 +5436,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("ListFormCode"); - b.ToTable("Sas_P_ListFormImport", (string)null); + b.ToTable("Sas_H_ListFormImport", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.ListFormImportExecute", b => @@ -5506,7 +5506,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("ImportId"); - b.ToTable("Sas_P_ListFormImportExecute", (string)null); + b.ToTable("Sas_H_ListFormImportExecute", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.MaterialGroup", b => @@ -5911,7 +5911,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Sas_P_Menu", (string)null); + b.ToTable("Sas_H_Menu", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.NoteType", b => @@ -8054,7 +8054,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("Key") .IsUnique(); - b.ToTable("Sas_P_Route", (string)null); + b.ToTable("Sas_H_Route", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.SalesRejectionReason", b => @@ -10190,7 +10190,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("DisplayOrder"); - b.ToTable("Sas_P_ForumCategory", (string)null); + b.ToTable("Sas_H_ForumCategory", (string)null); }); modelBuilder.Entity("Kurs.Platform.Forum.ForumPost", b => @@ -10260,7 +10260,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("TopicId"); - b.ToTable("Sas_P_ForumPost", (string)null); + b.ToTable("Sas_H_ForumPost", (string)null); }); modelBuilder.Entity("Kurs.Platform.Forum.ForumTopic", b => @@ -10359,7 +10359,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("LastPostDate"); - b.ToTable("Sas_P_ForumTopic", (string)null); + b.ToTable("Sas_H_ForumTopic", (string)null); }); modelBuilder.Entity("Kurs.Settings.Entities.SettingDefinition", b => @@ -10456,7 +10456,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Plat_P_SettingDefinition", (string)null); + b.ToTable("Plat_H_SettingDefinition", (string)null); }); modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101082915_Initial.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101111255_Initial.cs similarity index 97% rename from api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101082915_Initial.cs rename to api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101111255_Initial.cs index e2c6cf5d..3f6106ba 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101082915_Initial.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/20251101111255_Initial.cs @@ -1526,7 +1526,7 @@ namespace Kurs.Platform.Migrations }); migrationBuilder.CreateTable( - name: "Plat_P_AiBot", + name: "Plat_H_AiBot", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -1534,11 +1534,11 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Plat_P_AiBot", x => x.Id); + table.PrimaryKey("PK_Plat_H_AiBot", x => x.Id); }); migrationBuilder.CreateTable( - name: "Plat_P_BackgroundWorker", + name: "Plat_H_BackgroundWorker", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -1560,11 +1560,11 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Plat_P_BackgroundWorker", x => x.Id); + table.PrimaryKey("PK_Plat_H_BackgroundWorker", x => x.Id); }); migrationBuilder.CreateTable( - name: "Plat_P_BackgroundWorker_MailQueueTableFormat", + name: "Plat_H_BackgroundWorker_MailQueueTableFormat", columns: table => new { Id = table.Column(type: "int", nullable: false) @@ -1585,12 +1585,12 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Plat_P_BackgroundWorker_MailQueueTableFormat", x => x.Id); - table.UniqueConstraint("AK_Plat_P_BackgroundWorker_MailQueueTableFormat_TableName", x => x.TableName); + table.PrimaryKey("PK_Plat_H_BackgroundWorker_MailQueueTableFormat", x => x.Id); + table.UniqueConstraint("AK_Plat_H_BackgroundWorker_MailQueueTableFormat_TableName", x => x.TableName); }); migrationBuilder.CreateTable( - name: "Plat_P_Language", + name: "Plat_H_Language", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -1609,12 +1609,12 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Plat_P_Language", x => x.Id); - table.UniqueConstraint("AK_Plat_P_Language_CultureName", x => x.CultureName); + table.PrimaryKey("PK_Plat_H_Language", x => x.Id); + table.UniqueConstraint("AK_Plat_H_Language_CultureName", x => x.CultureName); }); migrationBuilder.CreateTable( - name: "Plat_P_LanguageKey", + name: "Plat_H_LanguageKey", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -1630,12 +1630,12 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Plat_P_LanguageKey", x => x.Id); - table.UniqueConstraint("AK_Plat_P_LanguageKey_ResourceName_Key", x => new { x.ResourceName, x.Key }); + table.PrimaryKey("PK_Plat_H_LanguageKey", x => x.Id); + table.UniqueConstraint("AK_Plat_H_LanguageKey_ResourceName_Key", x => new { x.ResourceName, x.Key }); }); migrationBuilder.CreateTable( - name: "Plat_P_NotificationRule", + name: "Plat_H_NotificationRule", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -1656,11 +1656,11 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Plat_P_NotificationRule", x => x.Id); + table.PrimaryKey("PK_Plat_H_NotificationRule", x => x.Id); }); migrationBuilder.CreateTable( - name: "Plat_P_SettingDefinition", + name: "Plat_H_SettingDefinition", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -1688,7 +1688,7 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Plat_P_SettingDefinition", x => x.Id); + table.PrimaryKey("PK_Plat_H_SettingDefinition", x => x.Id); }); migrationBuilder.CreateTable( @@ -1820,7 +1820,7 @@ namespace Kurs.Platform.Migrations }); migrationBuilder.CreateTable( - name: "Sas_P_ContactTag", + name: "Sas_H_ContactTag", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -1836,11 +1836,11 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_ContactTag", x => x.Id); + table.PrimaryKey("PK_Sas_H_ContactTag", x => x.Id); }); migrationBuilder.CreateTable( - name: "Sas_P_ContactTitle", + name: "Sas_H_ContactTitle", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -1856,11 +1856,11 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_ContactTitle", x => x.Id); + table.PrimaryKey("PK_Sas_H_ContactTitle", x => x.Id); }); migrationBuilder.CreateTable( - name: "Sas_P_CountryGroup", + name: "Sas_H_CountryGroup", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -1875,12 +1875,12 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_CountryGroup", x => x.Id); - table.UniqueConstraint("AK_Sas_P_CountryGroup_Name", x => x.Name); + table.PrimaryKey("PK_Sas_H_CountryGroup", x => x.Id); + table.UniqueConstraint("AK_Sas_H_CountryGroup_Name", x => x.Name); }); migrationBuilder.CreateTable( - name: "Sas_P_Currency", + name: "Sas_H_Currency", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -1900,11 +1900,11 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_Currency", x => x.Id); + table.PrimaryKey("PK_Sas_H_Currency", x => x.Id); }); migrationBuilder.CreateTable( - name: "Sas_P_DataSource", + name: "Sas_H_DataSource", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -1921,11 +1921,11 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_DataSource", x => x.Id); + table.PrimaryKey("PK_Sas_H_DataSource", x => x.Id); }); migrationBuilder.CreateTable( - name: "Sas_P_ForumCategory", + name: "Sas_H_ForumCategory", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -1953,11 +1953,11 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_ForumCategory", x => x.Id); + table.PrimaryKey("PK_Sas_H_ForumCategory", x => x.Id); }); migrationBuilder.CreateTable( - name: "Sas_P_ListForm", + name: "Sas_H_ListForm", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -2049,12 +2049,12 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_ListForm", x => x.Id); - table.UniqueConstraint("AK_Sas_P_ListForm_ListFormCode", x => x.ListFormCode); + table.PrimaryKey("PK_Sas_H_ListForm", x => x.Id); + table.UniqueConstraint("AK_Sas_H_ListForm_ListFormCode", x => x.ListFormCode); }); migrationBuilder.CreateTable( - name: "Sas_P_Menu", + name: "Sas_H_Menu", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -2082,11 +2082,11 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_Menu", x => x.Id); + table.PrimaryKey("PK_Sas_H_Menu", x => x.Id); }); migrationBuilder.CreateTable( - name: "Sas_P_Route", + name: "Sas_H_Route", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -2105,7 +2105,7 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_Route", x => x.Id); + table.PrimaryKey("PK_Sas_H_Route", x => x.Id); }); migrationBuilder.CreateTable( @@ -3203,7 +3203,7 @@ namespace Kurs.Platform.Migrations }); migrationBuilder.CreateTable( - name: "Plat_P_BackgroundWorker_MailQueue", + name: "Plat_H_BackgroundWorker_MailQueue", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -3229,18 +3229,18 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Plat_P_BackgroundWorker_MailQueue", x => x.Id); - table.UniqueConstraint("AK_Plat_P_BackgroundWorker_MailQueue_AwsMessageId", x => x.AwsMessageId); + table.PrimaryKey("PK_Plat_H_BackgroundWorker_MailQueue", x => x.Id); + table.UniqueConstraint("AK_Plat_H_BackgroundWorker_MailQueue_AwsMessageId", x => x.AwsMessageId); table.ForeignKey( - name: "FK_Plat_P_BackgroundWorker_MailQueue_Plat_P_BackgroundWorker_MailQueueTableFormat_TableName", + name: "FK_Plat_H_BackgroundWorker_MailQueue_Plat_H_BackgroundWorker_MailQueueTableFormat_TableName", column: x => x.TableName, - principalTable: "Plat_P_BackgroundWorker_MailQueueTableFormat", + principalTable: "Plat_H_BackgroundWorker_MailQueueTableFormat", principalColumn: "TableName", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( - name: "Plat_P_LanguageText", + name: "Plat_H_LanguageText", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -3258,23 +3258,23 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Plat_P_LanguageText", x => x.Id); + table.PrimaryKey("PK_Plat_H_LanguageText", x => x.Id); table.ForeignKey( - name: "FK_Plat_P_LanguageText_Plat_P_LanguageKey_ResourceName_Key", + name: "FK_Plat_H_LanguageText_Plat_H_LanguageKey_ResourceName_Key", columns: x => new { x.ResourceName, x.Key }, - principalTable: "Plat_P_LanguageKey", + principalTable: "Plat_H_LanguageKey", principalColumns: new[] { "ResourceName", "Key" }, onDelete: ReferentialAction.Cascade); table.ForeignKey( - name: "FK_Plat_P_LanguageText_Plat_P_Language_CultureName", + name: "FK_Plat_H_LanguageText_Plat_H_Language_CultureName", column: x => x.CultureName, - principalTable: "Plat_P_Language", + principalTable: "Plat_H_Language", principalColumn: "CultureName", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( - name: "Plat_P_Notification", + name: "Plat_H_Notification", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -3297,17 +3297,17 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Plat_P_Notification", x => x.Id); + table.PrimaryKey("PK_Plat_H_Notification", x => x.Id); table.ForeignKey( - name: "FK_Plat_P_Notification_Plat_P_NotificationRule_NotificationRuleId", + name: "FK_Plat_H_Notification_Plat_H_NotificationRule_NotificationRuleId", column: x => x.NotificationRuleId, - principalTable: "Plat_P_NotificationRule", + principalTable: "Plat_H_NotificationRule", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( - name: "Sas_P_Country", + name: "Sas_H_Country", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -3329,17 +3329,17 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_Country", x => x.Id); + table.PrimaryKey("PK_Sas_H_Country", x => x.Id); table.ForeignKey( - name: "FK_Sas_P_Country_Sas_P_CountryGroup_GroupName", + name: "FK_Sas_H_Country_Sas_H_CountryGroup_GroupName", column: x => x.GroupName, - principalTable: "Sas_P_CountryGroup", + principalTable: "Sas_H_CountryGroup", principalColumn: "Name", onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( - name: "Sas_P_ForumTopic", + name: "Sas_H_ForumTopic", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -3369,17 +3369,17 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_ForumTopic", x => x.Id); + table.PrimaryKey("PK_Sas_H_ForumTopic", x => x.Id); table.ForeignKey( - name: "FK_Sas_P_ForumTopic_Sas_P_ForumCategory_CategoryId", + name: "FK_Sas_H_ForumTopic_Sas_H_ForumCategory_CategoryId", column: x => x.CategoryId, - principalTable: "Sas_P_ForumCategory", + principalTable: "Sas_H_ForumCategory", principalColumn: "Id", onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( - name: "Sas_P_ListFormCustomization", + name: "Sas_H_ListFormCustomization", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -3399,17 +3399,17 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_ListFormCustomization", x => x.Id); + table.PrimaryKey("PK_Sas_H_ListFormCustomization", x => x.Id); table.ForeignKey( - name: "FK_Sas_P_ListFormCustomization_Sas_P_ListForm_ListFormCode", + name: "FK_Sas_H_ListFormCustomization_Sas_H_ListForm_ListFormCode", column: x => x.ListFormCode, - principalTable: "Sas_P_ListForm", + principalTable: "Sas_H_ListForm", principalColumn: "ListFormCode", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( - name: "Sas_P_ListFormField", + name: "Sas_H_ListFormField", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -3456,17 +3456,17 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_ListFormField", x => x.Id); + table.PrimaryKey("PK_Sas_H_ListFormField", x => x.Id); table.ForeignKey( - name: "FK_Sas_P_ListFormField_Sas_P_ListForm_ListFormCode", + name: "FK_Sas_H_ListFormField_Sas_H_ListForm_ListFormCode", column: x => x.ListFormCode, - principalTable: "Sas_P_ListForm", + principalTable: "Sas_H_ListForm", principalColumn: "ListFormCode", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( - name: "Sas_P_ListFormImport", + name: "Sas_H_ListFormImport", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -3484,11 +3484,11 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_ListFormImport", x => x.Id); + table.PrimaryKey("PK_Sas_H_ListFormImport", x => x.Id); table.ForeignKey( - name: "FK_Sas_P_ListFormImport_Sas_P_ListForm_ListFormCode", + name: "FK_Sas_H_ListFormImport_Sas_H_ListForm_ListFormCode", column: x => x.ListFormCode, - principalTable: "Sas_P_ListForm", + principalTable: "Sas_H_ListForm", principalColumn: "ListFormCode", onDelete: ReferentialAction.Cascade); }); @@ -3795,7 +3795,7 @@ namespace Kurs.Platform.Migrations }); migrationBuilder.CreateTable( - name: "Plat_P_BackgroundWorker_MailQueueEvents", + name: "Plat_H_BackgroundWorker_MailQueueEvents", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -3814,17 +3814,17 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Plat_P_BackgroundWorker_MailQueueEvents", x => x.Id); + table.PrimaryKey("PK_Plat_H_BackgroundWorker_MailQueueEvents", x => x.Id); table.ForeignKey( - name: "FK_Plat_P_BackgroundWorker_MailQueueEvents_Plat_P_BackgroundWorker_MailQueue_AwsMessageId", + name: "FK_Plat_H_BackgroundWorker_MailQueueEvents_Plat_H_BackgroundWorker_MailQueue_AwsMessageId", column: x => x.AwsMessageId, - principalTable: "Plat_P_BackgroundWorker_MailQueue", + principalTable: "Plat_H_BackgroundWorker_MailQueue", principalColumn: "AwsMessageId", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( - name: "Sas_P_City", + name: "Sas_H_City", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -3843,16 +3843,16 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_City", x => x.Id); + table.PrimaryKey("PK_Sas_H_City", x => x.Id); table.ForeignKey( - name: "FK_Sas_P_City_Sas_P_Country_CountryId", + name: "FK_Sas_H_City_Sas_H_Country_CountryId", column: x => x.CountryId, - principalTable: "Sas_P_Country", + principalTable: "Sas_H_Country", principalColumn: "Id"); }); migrationBuilder.CreateTable( - name: "Sas_P_ForumPost", + name: "Sas_H_ForumPost", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -3874,23 +3874,23 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_ForumPost", x => x.Id); + table.PrimaryKey("PK_Sas_H_ForumPost", x => x.Id); table.ForeignKey( - name: "FK_Sas_P_ForumPost_Sas_P_ForumPost_ParentPostId", + name: "FK_Sas_H_ForumPost_Sas_H_ForumPost_ParentPostId", column: x => x.ParentPostId, - principalTable: "Sas_P_ForumPost", + principalTable: "Sas_H_ForumPost", principalColumn: "Id", onDelete: ReferentialAction.Restrict); table.ForeignKey( - name: "FK_Sas_P_ForumPost_Sas_P_ForumTopic_TopicId", + name: "FK_Sas_H_ForumPost_Sas_H_ForumTopic_TopicId", column: x => x.TopicId, - principalTable: "Sas_P_ForumTopic", + principalTable: "Sas_H_ForumTopic", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( - name: "Sas_P_ListFormImportExecute", + name: "Sas_H_ListFormImportExecute", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -3912,11 +3912,11 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_ListFormImportExecute", x => x.Id); + table.PrimaryKey("PK_Sas_H_ListFormImportExecute", x => x.Id); table.ForeignKey( - name: "FK_Sas_P_ListFormImportExecute_Sas_P_ListFormImport_ImportId", + name: "FK_Sas_H_ListFormImportExecute_Sas_H_ListFormImport_ImportId", column: x => x.ImportId, - principalTable: "Sas_P_ListFormImport", + principalTable: "Sas_H_ListFormImport", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); @@ -3983,7 +3983,7 @@ namespace Kurs.Platform.Migrations }); migrationBuilder.CreateTable( - name: "Sas_P_District", + name: "Sas_H_District", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), @@ -4004,11 +4004,11 @@ namespace Kurs.Platform.Migrations }, constraints: table => { - table.PrimaryKey("PK_Sas_P_District", x => x.Id); + table.PrimaryKey("PK_Sas_H_District", x => x.Id); table.ForeignKey( - name: "FK_Sas_P_District_Sas_P_City_CityId", + name: "FK_Sas_H_District_Sas_H_City_CityId", column: x => x.CityId, - principalTable: "Sas_P_City", + principalTable: "Sas_H_City", principalColumn: "Id"); }); @@ -4080,9 +4080,9 @@ namespace Kurs.Platform.Migrations principalColumn: "Id", onDelete: ReferentialAction.Restrict); table.ForeignKey( - name: "FK_Adm_T_Partner_Sas_P_Currency_CurrencyId", + name: "FK_Adm_T_Partner_Sas_H_Currency_CurrencyId", column: x => x.CurrencyId, - principalTable: "Sas_P_Currency", + principalTable: "Sas_H_Currency", principalColumn: "Id"); table.ForeignKey( name: "FK_Adm_T_Partner_Sas_T_Sector_SectorId", @@ -4146,9 +4146,9 @@ namespace Kurs.Platform.Migrations principalColumn: "Id", onDelete: ReferentialAction.Restrict); table.ForeignKey( - name: "FK_Adm_T_PartnerBank_Sas_P_Currency_CurrencyId", + name: "FK_Adm_T_PartnerBank_Sas_H_Currency_CurrencyId", column: x => x.CurrencyId, - principalTable: "Sas_P_Currency", + principalTable: "Sas_H_Currency", principalColumn: "Id"); }); @@ -5743,136 +5743,136 @@ namespace Kurs.Platform.Migrations column: "ReferenceId"); migrationBuilder.CreateIndex( - name: "IX_Plat_P_BackgroundWorker_MailQueue_TableName", - table: "Plat_P_BackgroundWorker_MailQueue", + name: "IX_Plat_H_BackgroundWorker_MailQueue_TableName", + table: "Plat_H_BackgroundWorker_MailQueue", column: "TableName"); migrationBuilder.CreateIndex( - name: "IX_Plat_P_BackgroundWorker_MailQueueEvents_AwsMessageId", - table: "Plat_P_BackgroundWorker_MailQueueEvents", + name: "IX_Plat_H_BackgroundWorker_MailQueueEvents_AwsMessageId", + table: "Plat_H_BackgroundWorker_MailQueueEvents", column: "AwsMessageId"); migrationBuilder.CreateIndex( name: "IX_MailQueueTableFormat", - table: "Plat_P_BackgroundWorker_MailQueueTableFormat", + table: "Plat_H_BackgroundWorker_MailQueueTableFormat", columns: new[] { "TableName", "Order" }, unique: true); migrationBuilder.CreateIndex( - name: "IX_Plat_P_LanguageKey_ResourceName_Key", - table: "Plat_P_LanguageKey", + name: "IX_Plat_H_LanguageKey_ResourceName_Key", + table: "Plat_H_LanguageKey", columns: new[] { "ResourceName", "Key" }, unique: true); migrationBuilder.CreateIndex( - name: "IX_Plat_P_LanguageText_CultureName", - table: "Plat_P_LanguageText", + name: "IX_Plat_H_LanguageText_CultureName", + table: "Plat_H_LanguageText", column: "CultureName"); migrationBuilder.CreateIndex( - name: "IX_Plat_P_LanguageText_ResourceName_Key", - table: "Plat_P_LanguageText", + name: "IX_Plat_H_LanguageText_ResourceName_Key", + table: "Plat_H_LanguageText", columns: new[] { "ResourceName", "Key" }); migrationBuilder.CreateIndex( - name: "IX_Plat_P_Notification_NotificationRuleId", - table: "Plat_P_Notification", + name: "IX_Plat_H_Notification_NotificationRuleId", + table: "Plat_H_Notification", column: "NotificationRuleId"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_City_Country_Code", - table: "Sas_P_City", + name: "IX_Sas_H_City_Country_Code", + table: "Sas_H_City", columns: new[] { "Country", "Code" }, unique: true, filter: "[Country] IS NOT NULL"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_City_CountryId", - table: "Sas_P_City", + name: "IX_Sas_H_City_CountryId", + table: "Sas_H_City", column: "CountryId"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_Country_Code", - table: "Sas_P_Country", + name: "IX_Sas_H_Country_Code", + table: "Sas_H_Country", column: "Code", unique: true); migrationBuilder.CreateIndex( - name: "IX_Sas_P_Country_GroupName", - table: "Sas_P_Country", + name: "IX_Sas_H_Country_GroupName", + table: "Sas_H_Country", column: "GroupName"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_CountryGroup_Name", - table: "Sas_P_CountryGroup", + name: "IX_Sas_H_CountryGroup_Name", + table: "Sas_H_CountryGroup", column: "Name", unique: true); migrationBuilder.CreateIndex( - name: "IX_Sas_P_District_CityId", - table: "Sas_P_District", + name: "IX_Sas_H_District_CityId", + table: "Sas_H_District", column: "CityId"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_District_Country_City_Name_Township_Street_ZipCode", - table: "Sas_P_District", + name: "IX_Sas_H_District_Country_City_Name_Township_Street_ZipCode", + table: "Sas_H_District", columns: new[] { "Country", "City", "Name", "Township", "Street", "ZipCode" }, unique: true, filter: "[Country] IS NOT NULL AND [Township] IS NOT NULL AND [Street] IS NOT NULL AND [ZipCode] IS NOT NULL"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_ForumCategory_DisplayOrder", - table: "Sas_P_ForumCategory", + name: "IX_Sas_H_ForumCategory_DisplayOrder", + table: "Sas_H_ForumCategory", column: "DisplayOrder"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_ForumPost_ParentPostId", - table: "Sas_P_ForumPost", + name: "IX_Sas_H_ForumPost_ParentPostId", + table: "Sas_H_ForumPost", column: "ParentPostId"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_ForumPost_TopicId", - table: "Sas_P_ForumPost", + name: "IX_Sas_H_ForumPost_TopicId", + table: "Sas_H_ForumPost", column: "TopicId"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_ForumTopic_CategoryId", - table: "Sas_P_ForumTopic", + name: "IX_Sas_H_ForumTopic_CategoryId", + table: "Sas_H_ForumTopic", column: "CategoryId"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_ForumTopic_IsPinned", - table: "Sas_P_ForumTopic", + name: "IX_Sas_H_ForumTopic_IsPinned", + table: "Sas_H_ForumTopic", column: "IsPinned"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_ForumTopic_LastPostDate", - table: "Sas_P_ForumTopic", + name: "IX_Sas_H_ForumTopic_LastPostDate", + table: "Sas_H_ForumTopic", column: "LastPostDate"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_ListFormCustomization_ListFormCode", - table: "Sas_P_ListFormCustomization", + name: "IX_Sas_H_ListFormCustomization_ListFormCode", + table: "Sas_H_ListFormCustomization", column: "ListFormCode"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_ListFormField_ListFormCode", - table: "Sas_P_ListFormField", + name: "IX_Sas_H_ListFormField_ListFormCode", + table: "Sas_H_ListFormField", column: "ListFormCode"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_ListFormImport_ListFormCode", - table: "Sas_P_ListFormImport", + name: "IX_Sas_H_ListFormImport_ListFormCode", + table: "Sas_H_ListFormImport", column: "ListFormCode"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_ListFormImportExecute_ImportId", - table: "Sas_P_ListFormImportExecute", + name: "IX_Sas_H_ListFormImportExecute_ImportId", + table: "Sas_H_ListFormImportExecute", column: "ImportId"); migrationBuilder.CreateIndex( - name: "IX_Sas_P_Route_Key", - table: "Sas_P_Route", + name: "IX_Sas_H_Route_Key", + table: "Sas_H_Route", column: "Key", unique: true); @@ -6205,22 +6205,22 @@ namespace Kurs.Platform.Migrations name: "OpenIddictTokens"); migrationBuilder.DropTable( - name: "Plat_P_AiBot"); + name: "Plat_H_AiBot"); migrationBuilder.DropTable( - name: "Plat_P_BackgroundWorker"); + name: "Plat_H_BackgroundWorker"); migrationBuilder.DropTable( - name: "Plat_P_BackgroundWorker_MailQueueEvents"); + name: "Plat_H_BackgroundWorker_MailQueueEvents"); migrationBuilder.DropTable( - name: "Plat_P_LanguageText"); + name: "Plat_H_LanguageText"); migrationBuilder.DropTable( - name: "Plat_P_Notification"); + name: "Plat_H_Notification"); migrationBuilder.DropTable( - name: "Plat_P_SettingDefinition"); + name: "Plat_H_SettingDefinition"); migrationBuilder.DropTable( name: "Prt_T_Interesting"); @@ -6241,34 +6241,34 @@ namespace Kurs.Platform.Migrations name: "Prt_T_Source"); migrationBuilder.DropTable( - name: "Sas_P_ContactTag"); + name: "Sas_H_ContactTag"); migrationBuilder.DropTable( - name: "Sas_P_ContactTitle"); + name: "Sas_H_ContactTitle"); migrationBuilder.DropTable( - name: "Sas_P_DataSource"); + name: "Sas_H_DataSource"); migrationBuilder.DropTable( - name: "Sas_P_District"); + name: "Sas_H_District"); migrationBuilder.DropTable( - name: "Sas_P_ForumPost"); + name: "Sas_H_ForumPost"); migrationBuilder.DropTable( - name: "Sas_P_ListFormCustomization"); + name: "Sas_H_ListFormCustomization"); migrationBuilder.DropTable( - name: "Sas_P_ListFormField"); + name: "Sas_H_ListFormField"); migrationBuilder.DropTable( - name: "Sas_P_ListFormImportExecute"); + name: "Sas_H_ListFormImportExecute"); migrationBuilder.DropTable( - name: "Sas_P_Menu"); + name: "Sas_H_Menu"); migrationBuilder.DropTable( - name: "Sas_P_Route"); + name: "Sas_H_Route"); migrationBuilder.DropTable( name: "Sas_T_Activity"); @@ -6379,25 +6379,25 @@ namespace Kurs.Platform.Migrations name: "OpenIddictAuthorizations"); migrationBuilder.DropTable( - name: "Plat_P_BackgroundWorker_MailQueue"); + name: "Plat_H_BackgroundWorker_MailQueue"); migrationBuilder.DropTable( - name: "Plat_P_LanguageKey"); + name: "Plat_H_LanguageKey"); migrationBuilder.DropTable( - name: "Plat_P_Language"); + name: "Plat_H_Language"); migrationBuilder.DropTable( - name: "Plat_P_NotificationRule"); + name: "Plat_H_NotificationRule"); migrationBuilder.DropTable( - name: "Sas_P_City"); + name: "Sas_H_City"); migrationBuilder.DropTable( - name: "Sas_P_ForumTopic"); + name: "Sas_H_ForumTopic"); migrationBuilder.DropTable( - name: "Sas_P_ListFormImport"); + name: "Sas_H_ListFormImport"); migrationBuilder.DropTable( name: "Sas_T_CustomEntity"); @@ -6415,7 +6415,7 @@ namespace Kurs.Platform.Migrations name: "Crm_T_CustomerType"); migrationBuilder.DropTable( - name: "Sas_P_Currency"); + name: "Sas_H_Currency"); migrationBuilder.DropTable( name: "Sas_T_Sector"); @@ -6451,22 +6451,22 @@ namespace Kurs.Platform.Migrations name: "OpenIddictApplications"); migrationBuilder.DropTable( - name: "Plat_P_BackgroundWorker_MailQueueTableFormat"); + name: "Plat_H_BackgroundWorker_MailQueueTableFormat"); migrationBuilder.DropTable( - name: "Sas_P_Country"); + name: "Sas_H_Country"); migrationBuilder.DropTable( - name: "Sas_P_ForumCategory"); + name: "Sas_H_ForumCategory"); migrationBuilder.DropTable( - name: "Sas_P_ListForm"); + name: "Sas_H_ListForm"); migrationBuilder.DropTable( name: "Sas_T_ReportCategory"); migrationBuilder.DropTable( - name: "Sas_P_CountryGroup"); + name: "Sas_H_CountryGroup"); migrationBuilder.DropTable( name: "Acc_T_Bank"); diff --git a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs index aa66979e..e9f1c43d 100644 --- a/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs +++ b/api/src/Kurs.Platform.EntityFrameworkCore/Migrations/PlatformDbContextModelSnapshot.cs @@ -83,7 +83,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Plat_P_Language", (string)null); + b.ToTable("Plat_H_Language", (string)null); }); modelBuilder.Entity("Kurs.Languages.Entities.LanguageKey", b => @@ -137,7 +137,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("ResourceName", "Key") .IsUnique(); - b.ToTable("Plat_P_LanguageKey", (string)null); + b.ToTable("Plat_H_LanguageKey", (string)null); }); modelBuilder.Entity("Kurs.Languages.Entities.LanguageText", b => @@ -200,7 +200,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("ResourceName", "Key"); - b.ToTable("Plat_P_LanguageText", (string)null); + b.ToTable("Plat_H_LanguageText", (string)null); }); modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueue", b => @@ -291,7 +291,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("TableName"); - b.ToTable("Plat_P_BackgroundWorker_MailQueue", (string)null); + b.ToTable("Plat_H_BackgroundWorker_MailQueue", (string)null); }); modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueEvents", b => @@ -353,7 +353,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("AwsMessageId"); - b.ToTable("Plat_P_BackgroundWorker_MailQueueEvents", (string)null); + b.ToTable("Plat_H_BackgroundWorker_MailQueueEvents", (string)null); }); modelBuilder.Entity("Kurs.MailQueue.Domain.Entities.BackgroundWorker_MailQueueTableFormat", b => @@ -419,7 +419,7 @@ namespace Kurs.Platform.Migrations .IsUnique() .HasDatabaseName("IX_MailQueueTableFormat"); - b.ToTable("Plat_P_BackgroundWorker_MailQueueTableFormat", (string)null); + b.ToTable("Plat_H_BackgroundWorker_MailQueueTableFormat", (string)null); }); modelBuilder.Entity("Kurs.Notifications.Entities.Notification", b => @@ -497,7 +497,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("NotificationRuleId"); - b.ToTable("Plat_P_Notification", (string)null); + b.ToTable("Plat_H_Notification", (string)null); }); modelBuilder.Entity("Kurs.Notifications.Entities.NotificationRule", b => @@ -566,7 +566,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Plat_P_NotificationRule", (string)null); + b.ToTable("Plat_H_NotificationRule", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.About", b => @@ -701,7 +701,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Plat_P_AiBot", (string)null); + b.ToTable("Plat_H_AiBot", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.Announcement", b => @@ -1006,7 +1006,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Plat_P_BackgroundWorker", (string)null); + b.ToTable("Plat_H_BackgroundWorker", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.Badge", b => @@ -1750,7 +1750,7 @@ namespace Kurs.Platform.Migrations .IsUnique() .HasFilter("[Country] IS NOT NULL"); - b.ToTable("Sas_P_City", (string)null); + b.ToTable("Sas_H_City", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.Class", b => @@ -2401,7 +2401,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Sas_P_ContactTag", (string)null); + b.ToTable("Sas_H_ContactTag", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.ContactTitle", b => @@ -2450,7 +2450,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Sas_P_ContactTitle", (string)null); + b.ToTable("Sas_H_ContactTitle", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.CostCenter", b => @@ -2621,7 +2621,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("GroupName"); - b.ToTable("Sas_P_Country", (string)null); + b.ToTable("Sas_H_Country", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.CountryGroup", b => @@ -2669,7 +2669,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("Name") .IsUnique(); - b.ToTable("Sas_P_CountryGroup", (string)null); + b.ToTable("Sas_H_CountryGroup", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.Currency", b => @@ -2735,7 +2735,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Sas_P_Currency", (string)null); + b.ToTable("Sas_H_Currency", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.CustomComponent", b => @@ -3209,7 +3209,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Sas_P_DataSource", (string)null); + b.ToTable("Sas_H_DataSource", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.Demo", b => @@ -3497,7 +3497,7 @@ namespace Kurs.Platform.Migrations .IsUnique() .HasFilter("[Country] IS NOT NULL AND [Township] IS NOT NULL AND [Street] IS NOT NULL AND [ZipCode] IS NOT NULL"); - b.ToTable("Sas_P_District", (string)null); + b.ToTable("Sas_H_District", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.Document", b => @@ -5141,7 +5141,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Sas_P_ListForm", (string)null); + b.ToTable("Sas_H_ListForm", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.ListFormCustomization", b => @@ -5206,7 +5206,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("ListFormCode"); - b.ToTable("Sas_P_ListFormCustomization", (string)null); + b.ToTable("Sas_H_ListFormCustomization", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.ListFormField", b => @@ -5373,7 +5373,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("ListFormCode"); - b.ToTable("Sas_P_ListFormField", (string)null); + b.ToTable("Sas_H_ListFormField", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.ListFormImport", b => @@ -5433,7 +5433,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("ListFormCode"); - b.ToTable("Sas_P_ListFormImport", (string)null); + b.ToTable("Sas_H_ListFormImport", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.ListFormImportExecute", b => @@ -5503,7 +5503,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("ImportId"); - b.ToTable("Sas_P_ListFormImportExecute", (string)null); + b.ToTable("Sas_H_ListFormImportExecute", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.MaterialGroup", b => @@ -5908,7 +5908,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Sas_P_Menu", (string)null); + b.ToTable("Sas_H_Menu", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.NoteType", b => @@ -8051,7 +8051,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("Key") .IsUnique(); - b.ToTable("Sas_P_Route", (string)null); + b.ToTable("Sas_H_Route", (string)null); }); modelBuilder.Entity("Kurs.Platform.Entities.SalesRejectionReason", b => @@ -10187,7 +10187,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("DisplayOrder"); - b.ToTable("Sas_P_ForumCategory", (string)null); + b.ToTable("Sas_H_ForumCategory", (string)null); }); modelBuilder.Entity("Kurs.Platform.Forum.ForumPost", b => @@ -10257,7 +10257,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("TopicId"); - b.ToTable("Sas_P_ForumPost", (string)null); + b.ToTable("Sas_H_ForumPost", (string)null); }); modelBuilder.Entity("Kurs.Platform.Forum.ForumTopic", b => @@ -10356,7 +10356,7 @@ namespace Kurs.Platform.Migrations b.HasIndex("LastPostDate"); - b.ToTable("Sas_P_ForumTopic", (string)null); + b.ToTable("Sas_H_ForumTopic", (string)null); }); modelBuilder.Entity("Kurs.Settings.Entities.SettingDefinition", b => @@ -10453,7 +10453,7 @@ namespace Kurs.Platform.Migrations b.HasKey("Id"); - b.ToTable("Plat_P_SettingDefinition", (string)null); + b.ToTable("Plat_H_SettingDefinition", (string)null); }); modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>