HostData Seeder güncellemesi

This commit is contained in:
Sedat Öztürk 2025-10-10 22:26:58 +03:00
parent f87be95b01
commit 8c8e214e78
7 changed files with 23993 additions and 23729 deletions

View file

@ -42,6 +42,19 @@
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>
<None Remove="Seeds\HostData.json" />
<Content Include="Seeds\HostData.json">
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Seeds\HostData.Dev.json">
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Seeds\HostData.Production.json">
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<None Remove="Seeds\CountryGroups.json" /> <None Remove="Seeds\CountryGroups.json" />
<Content Include="Seeds\CountryGroups.json"> <Content Include="Seeds\CountryGroups.json">
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>

View file

@ -0,0 +1,2 @@
{
}

View file

@ -0,0 +1,2 @@
{
}

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,6 @@ using System.Linq;
using System.Text.Json; using System.Text.Json;
using System.Threading.Tasks; using System.Threading.Tasks;
using Kurs.Languages.Entities; using Kurs.Languages.Entities;
using Kurs.Notifications.Entities;
using Kurs.Platform.Entities; using Kurs.Platform.Entities;
using Kurs.Platform.Enums; using Kurs.Platform.Enums;
using Kurs.Platform.Seeds; using Kurs.Platform.Seeds;
@ -342,8 +341,8 @@ public class HostDataSeeder : IDataSeedContributor, ITransientDependency
var configuration = new ConfigurationBuilder() var configuration = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory()) .SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile(Path.Combine("Seeds", "TenantData.json")) .AddJsonFile(Path.Combine("Seeds", "HostData.json"))
.AddJsonFile(Path.Combine("Seeds", $"TenantData.{Environment.GetEnvironmentVariable("DOTNET_ENVIRONMENT") ?? ""}.json"), true) .AddJsonFile(Path.Combine("Seeds", $"HostData.{Environment.GetEnvironmentVariable("DOTNET_ENVIRONMENT") ?? ""}.json"), true)
.Build(); .Build();
var items = configuration.Get<HostSeederDto>(); var items = configuration.Get<HostSeederDto>();

View file

@ -1419,6 +1419,11 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
FieldName = "IsActive", FieldName = "IsActive",
FieldDbType = DbType.Boolean, FieldDbType = DbType.Boolean,
Value = "true", Value = "true",
CustomValueType = FieldCustomValueTypeEnum.Value },
new() {
FieldName = "Country",
FieldDbType = DbType.String,
Value = "TR",
CustomValueType = FieldCustomValueTypeEnum.Value } CustomValueType = FieldCustomValueTypeEnum.Value }
}) })
@ -2246,6 +2251,11 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
FieldName = "IsActive", FieldName = "IsActive",
FieldDbType = DbType.Boolean, FieldDbType = DbType.Boolean,
Value = "true", Value = "true",
CustomValueType = FieldCustomValueTypeEnum.Value },
new() {
FieldName = "Country",
FieldDbType = DbType.String,
Value = "TR",
CustomValueType = FieldCustomValueTypeEnum.Value } CustomValueType = FieldCustomValueTypeEnum.Value }
}) })
@ -3067,6 +3077,11 @@ public class ListFormsSeeder : IDataSeedContributor, ITransientDependency
FieldName = "IsActive", FieldName = "IsActive",
FieldDbType = DbType.Boolean, FieldDbType = DbType.Boolean,
Value = "true", Value = "true",
CustomValueType = FieldCustomValueTypeEnum.Value },
new() {
FieldName = "Country",
FieldDbType = DbType.String,
Value = "TR",
CustomValueType = FieldCustomValueTypeEnum.Value } CustomValueType = FieldCustomValueTypeEnum.Value }
}), }),
CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] { CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] {

File diff suppressed because it is too large Load diff