HostData Seeder güncellemesi
This commit is contained in:
parent
f87be95b01
commit
8c8e214e78
7 changed files with 23993 additions and 23729 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
2
api/src/Kurs.Platform.DbMigrator/Seeds/HostData.Dev.json
Normal file
2
api/src/Kurs.Platform.DbMigrator/Seeds/HostData.Dev.json
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
{
|
||||||
|
}
|
||||||
23905
api/src/Kurs.Platform.DbMigrator/Seeds/HostData.json
Normal file
23905
api/src/Kurs.Platform.DbMigrator/Seeds/HostData.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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>();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
Loading…
Reference in a new issue