HostData Seeder güncellemesi

This commit is contained in:
Sedat Öztürk 2025-10-10 22:20:43 +03:00
parent f87be95b01
commit 2274e7ead4
6 changed files with 23924 additions and 23675 deletions

View file

@ -42,6 +42,19 @@
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</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" />
<Content Include="Seeds\CountryGroups.json">
<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.Threading.Tasks;
using Kurs.Languages.Entities;
using Kurs.Notifications.Entities;
using Kurs.Platform.Entities;
using Kurs.Platform.Enums;
using Kurs.Platform.Seeds;
@ -342,8 +341,8 @@ public class HostDataSeeder : IDataSeedContributor, ITransientDependency
var configuration = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile(Path.Combine("Seeds", "TenantData.json"))
.AddJsonFile(Path.Combine("Seeds", $"TenantData.{Environment.GetEnvironmentVariable("DOTNET_ENVIRONMENT") ?? ""}.json"), true)
.AddJsonFile(Path.Combine("Seeds", "HostData.json"))
.AddJsonFile(Path.Combine("Seeds", $"HostData.{Environment.GetEnvironmentVariable("DOTNET_ENVIRONMENT") ?? ""}.json"), true)
.Build();
var items = configuration.Get<HostSeederDto>();

File diff suppressed because it is too large Load diff