Tanımlamaların Guid -> string dönüştürüldü

This commit is contained in:
Sedat Öztürk 2025-12-12 00:04:21 +03:00
parent 1bedba8be1
commit 9a6f1b3a01
18 changed files with 214 additions and 136 deletions

View file

@ -11,6 +11,6 @@ public class UomDto : AuditedEntityDto<string>
public decimal Ratio { get; set; } public decimal Ratio { get; set; }
public bool IsActive { get; set; } public bool IsActive { get; set; }
public decimal Rounding { get; set; } public decimal Rounding { get; set; }
public Guid UomCategoryId { get; set; } public string UomCategoryId { get; set; }
public string UomCategoryName { get; set; } // Listelemede gösterim için opsiyonel public string UomCategoryName { get; set; } // Listelemede gösterim için opsiyonel
} }

View file

@ -3841,7 +3841,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
SelectCommandType = SelectCommandTypeEnum.Table, SelectCommandType = SelectCommandTypeEnum.Table,
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.WorkHour)), SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.WorkHour)),
KeyFieldName = "Id", KeyFieldName = "Id",
KeyFieldDbSourceType = DbType.Guid, KeyFieldDbSourceType = DbType.String,
DefaultFilter = DefaultFilterJson, DefaultFilter = DefaultFilterJson,
SortMode = GridOptions.SortModeSingle, SortMode = GridOptions.SortModeSingle,
FilterRowJson = DefaultFilterRowJson, FilterRowJson = DefaultFilterRowJson,
@ -3852,7 +3852,8 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
ColumnOptionJson = DefaultColumnOptionJson, ColumnOptionJson = DefaultColumnOptionJson,
PermissionJson = DefaultPermissionJson(listFormName), PermissionJson = DefaultPermissionJson(listFormName),
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.WorkHour)), DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.WorkHour)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(), DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(DbType.String),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(DbType.String),
PagerOptionJson = DefaultPagerOptionJson, PagerOptionJson = DefaultPagerOptionJson,
EditingOptionJson = DefaultEditingOptionJson(listFormName, 600, 300, true, true, true, true, false), EditingOptionJson = DefaultEditingOptionJson(listFormName, 600, 300, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() { EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
@ -3871,7 +3872,6 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
new EditingFormItemDto { Order = 10, DataField = "Sunday", ColSpan = 1, EditorType2 = EditorTypes.dxCheckBox }, new EditingFormItemDto { Order = 10, DataField = "Sunday", ColSpan = 1, EditorType2 = EditorTypes.dxCheckBox },
]} ]}
}), }),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
new() { FieldName = "Monday", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "Monday", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value },
new() { FieldName = "Tuesday", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "Tuesday", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value },
@ -4175,7 +4175,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
SelectCommandType = SelectCommandTypeEnum.Table, SelectCommandType = SelectCommandTypeEnum.Table,
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillType)), SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillType)),
KeyFieldName = "Id", KeyFieldName = "Id",
KeyFieldDbSourceType = DbType.Guid, KeyFieldDbSourceType = DbType.String,
DefaultFilter = DefaultFilterJson, DefaultFilter = DefaultFilterJson,
SortMode = GridOptions.SortModeSingle, SortMode = GridOptions.SortModeSingle,
FilterRowJson = DefaultFilterRowJson, FilterRowJson = DefaultFilterRowJson,
@ -4186,8 +4186,9 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
ColumnOptionJson = DefaultColumnOptionJson, ColumnOptionJson = DefaultColumnOptionJson,
PermissionJson = DefaultPermissionJson(listFormName), PermissionJson = DefaultPermissionJson(listFormName),
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.SkillType)), DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.SkillType)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(), DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(DbType.String),
PagerOptionJson = DefaultPagerOptionJson, PagerOptionJson = DefaultPagerOptionJson,
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(DbType.String),
EditingOptionJson = DefaultEditingOptionJson(listFormName, 400, 200, true, true, true, true, false), EditingOptionJson = DefaultEditingOptionJson(listFormName, 400, 200, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto> EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>
{ {
@ -4198,7 +4199,6 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
] ]
} }
}), }),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] { CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] {
new() { new() {
Hint = "Manage", Hint = "Manage",
@ -4273,7 +4273,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
SelectCommandType = SelectCommandTypeEnum.Table, SelectCommandType = SelectCommandTypeEnum.Table,
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillLevel)), SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillLevel)),
KeyFieldName = "Id", KeyFieldName = "Id",
KeyFieldDbSourceType = DbType.Guid, KeyFieldDbSourceType = DbType.String,
DefaultFilter = DefaultFilterJson, DefaultFilter = DefaultFilterJson,
SortMode = GridOptions.SortModeSingle, SortMode = GridOptions.SortModeSingle,
FilterRowJson = DefaultFilterRowJson, FilterRowJson = DefaultFilterRowJson,
@ -4284,8 +4284,9 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
ColumnOptionJson = DefaultColumnOptionJson, ColumnOptionJson = DefaultColumnOptionJson,
PermissionJson = DefaultPermissionJson(listFormName), PermissionJson = DefaultPermissionJson(listFormName),
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.SkillLevel)), DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.SkillLevel)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(), DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(DbType.String),
PagerOptionJson = DefaultPagerOptionJson, PagerOptionJson = DefaultPagerOptionJson,
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(DbType.String),
EditingOptionJson = DefaultEditingOptionJson(listFormName, 600, 300, true, true, true, true, false), EditingOptionJson = DefaultEditingOptionJson(listFormName, 600, 300, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() { EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items= new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items=
@ -4296,7 +4297,6 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
] ]
} }
}), }),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
new() { FieldName = "IsDefault", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value } new() { FieldName = "IsDefault", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }
}), }),
@ -4397,7 +4397,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
SelectCommandType = SelectCommandTypeEnum.Table, SelectCommandType = SelectCommandTypeEnum.Table,
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Skill)), SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Skill)),
KeyFieldName = "Id", KeyFieldName = "Id",
KeyFieldDbSourceType = DbType.Guid, KeyFieldDbSourceType = DbType.String,
DefaultFilter = DefaultFilterJson, DefaultFilter = DefaultFilterJson,
SortMode = GridOptions.SortModeSingle, SortMode = GridOptions.SortModeSingle,
FilterRowJson = DefaultFilterRowJson, FilterRowJson = DefaultFilterRowJson,
@ -4408,15 +4408,15 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
ColumnOptionJson = DefaultColumnOptionJson, ColumnOptionJson = DefaultColumnOptionJson,
PermissionJson = DefaultPermissionJson(listFormName), PermissionJson = DefaultPermissionJson(listFormName),
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Skill)), DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Skill)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(), DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(DbType.String),
PagerOptionJson = DefaultPagerOptionJson, PagerOptionJson = DefaultPagerOptionJson,
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(DbType.String),
EditingOptionJson = DefaultEditingOptionJson(AppCodes.Definitions.SkillLevel, 600, 300, true, true, true, true, false), EditingOptionJson = DefaultEditingOptionJson(AppCodes.Definitions.SkillLevel, 600, 300, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() { EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items=[ new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items=[
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
]} ]}
}), }),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
}, autoSave: true }, autoSave: true
); );
@ -4472,7 +4472,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
Relation = new List<dynamic>() { Relation = new List<dynamic>() {
new { new {
ParentFieldName = "Id", ParentFieldName = "Id",
DbType = DbType.Guid, DbType = DbType.String,
ChildFieldName = "SkillTypeId" ChildFieldName = "SkillTypeId"
} }
} }
@ -4484,7 +4484,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
Relation = new List<dynamic>() { Relation = new List<dynamic>() {
new { new {
ParentFieldName = "Id", ParentFieldName = "Id",
DbType = DbType.Guid, DbType = DbType.String,
ChildFieldName = "SkillTypeId" ChildFieldName = "SkillTypeId"
} }
} }
@ -4782,7 +4782,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
Relation = new List<dynamic>() { Relation = new List<dynamic>() {
new { new {
ParentFieldName = "Id", ParentFieldName = "Id",
DbType = DbType.Guid, DbType = DbType.String,
ChildFieldName = "UomCategoryId" ChildFieldName = "UomCategoryId"
} }
} }
@ -4813,7 +4813,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
SelectCommandType = SelectCommandTypeEnum.Table, SelectCommandType = SelectCommandTypeEnum.Table,
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Behavior)), SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Behavior)),
KeyFieldName = "Id", KeyFieldName = "Id",
KeyFieldDbSourceType = DbType.Guid, KeyFieldDbSourceType = DbType.String,
DefaultFilter = DefaultFilterJson, DefaultFilter = DefaultFilterJson,
SortMode = GridOptions.SortModeSingle, SortMode = GridOptions.SortModeSingle,
FilterRowJson = DefaultFilterRowJson, FilterRowJson = DefaultFilterRowJson,
@ -4824,7 +4824,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
ColumnOptionJson = DefaultColumnOptionJson, ColumnOptionJson = DefaultColumnOptionJson,
PermissionJson = DefaultPermissionJson(listFormName), PermissionJson = DefaultPermissionJson(listFormName),
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Behavior)), DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Behavior)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(), DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(DbType.String),
PagerOptionJson = DefaultPagerOptionJson, PagerOptionJson = DefaultPagerOptionJson,
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false), EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() { EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
@ -4833,7 +4833,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
]} ]}
}), }),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(), InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(DbType.String),
}); });
#region Behavior Fields #region Behavior Fields
@ -4900,7 +4900,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
SelectCommandType = SelectCommandTypeEnum.Table, SelectCommandType = SelectCommandTypeEnum.Table,
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Disease)), SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Disease)),
KeyFieldName = "Id", KeyFieldName = "Id",
KeyFieldDbSourceType = DbType.Guid, KeyFieldDbSourceType = DbType.String,
DefaultFilter = DefaultFilterJson, DefaultFilter = DefaultFilterJson,
SortMode = GridOptions.SortModeSingle, SortMode = GridOptions.SortModeSingle,
FilterRowJson = DefaultFilterRowJson, FilterRowJson = DefaultFilterRowJson,
@ -4911,7 +4911,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
ColumnOptionJson = DefaultColumnOptionJson, ColumnOptionJson = DefaultColumnOptionJson,
PermissionJson = DefaultPermissionJson(listFormName), PermissionJson = DefaultPermissionJson(listFormName),
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Disease)), DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Disease)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(), DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(DbType.String),
PagerOptionJson = DefaultPagerOptionJson, PagerOptionJson = DefaultPagerOptionJson,
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, false, false), EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, false, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() { EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
@ -4922,7 +4922,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
] ]
} }
}), }),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(), InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(DbType.String),
} }
); );
@ -4989,7 +4989,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
SelectCommandType = SelectCommandTypeEnum.Table, SelectCommandType = SelectCommandTypeEnum.Table,
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Document)), SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Document)),
KeyFieldName = "Id", KeyFieldName = "Id",
KeyFieldDbSourceType = DbType.Guid, KeyFieldDbSourceType = DbType.String,
DefaultFilter = DefaultFilterJson, DefaultFilter = DefaultFilterJson,
SortMode = GridOptions.SortModeSingle, SortMode = GridOptions.SortModeSingle,
FilterRowJson = DefaultFilterRowJson, FilterRowJson = DefaultFilterRowJson,
@ -5000,7 +5000,8 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
ColumnOptionJson = DefaultColumnOptionJson, ColumnOptionJson = DefaultColumnOptionJson,
PermissionJson = DefaultPermissionJson(listFormName), PermissionJson = DefaultPermissionJson(listFormName),
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Document)), DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Document)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(), DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(DbType.String),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(DbType.String),
PagerOptionJson = DefaultPagerOptionJson, PagerOptionJson = DefaultPagerOptionJson,
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false), EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() { EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
@ -5008,7 +5009,6 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
]} ]}
}), }),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
} }
); );
@ -5179,7 +5179,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
SelectCommandType = SelectCommandTypeEnum.Table, SelectCommandType = SelectCommandTypeEnum.Table,
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Vaccine)), SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Vaccine)),
KeyFieldName = "Id", KeyFieldName = "Id",
KeyFieldDbSourceType = DbType.Guid, KeyFieldDbSourceType = DbType.String,
DefaultFilter = DefaultFilterJson, DefaultFilter = DefaultFilterJson,
SortMode = GridOptions.SortModeSingle, SortMode = GridOptions.SortModeSingle,
FilterRowJson = DefaultFilterRowJson, FilterRowJson = DefaultFilterRowJson,
@ -5190,15 +5190,15 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
ColumnOptionJson = DefaultColumnOptionJson, ColumnOptionJson = DefaultColumnOptionJson,
PermissionJson = DefaultPermissionJson(listFormName), PermissionJson = DefaultPermissionJson(listFormName),
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Vaccine)), DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Vaccine)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(), DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(DbType.String),
PagerOptionJson = DefaultPagerOptionJson, PagerOptionJson = DefaultPagerOptionJson,
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(DbType.String),
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false), EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 250, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() { EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items=[ new() { Order=1, ColCount=1, ColSpan=1, ItemType="group", Items=[
new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox }, new EditingFormItemDto { Order = 1, DataField = "Name", ColSpan = 1, IsRequired = true, EditorType2=EditorTypes.dxTextBox },
]} ]}
}), }),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
} }
); );
@ -5266,7 +5266,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
SelectCommandType = SelectCommandTypeEnum.Table, SelectCommandType = SelectCommandTypeEnum.Table,
SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Vehicle)), SelectCommand = TableNameResolver.GetFullTableName(nameof(TableNameEnum.Vehicle)),
KeyFieldName = "Id", KeyFieldName = "Id",
KeyFieldDbSourceType = DbType.Guid, KeyFieldDbSourceType = DbType.String,
DefaultFilter = DefaultFilterJson, DefaultFilter = DefaultFilterJson,
SortMode = GridOptions.SortModeSingle, SortMode = GridOptions.SortModeSingle,
FilterRowJson = DefaultFilterRowJson, FilterRowJson = DefaultFilterRowJson,
@ -5277,7 +5277,8 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
ColumnOptionJson = DefaultColumnOptionJson, ColumnOptionJson = DefaultColumnOptionJson,
PermissionJson = DefaultPermissionJson(listFormName), PermissionJson = DefaultPermissionJson(listFormName),
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Vehicle)), DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.Vehicle)),
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(), DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(DbType.String),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(DbType.String),
PagerOptionJson = DefaultPagerOptionJson, PagerOptionJson = DefaultPagerOptionJson,
EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 500, true, true, true, true, false), EditingOptionJson = DefaultEditingOptionJson(listFormName, 500, 500, true, true, true, true, false),
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() { EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>() {
@ -5298,7 +5299,6 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
new EditingFormItemDto { Order = 12, DataField = "Status", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton }, new EditingFormItemDto { Order = 12, DataField = "Status", ColSpan = 1, EditorType2 = EditorTypes.dxSelectBox, EditorOptions=EditorOptionValues.ShowClearButton },
]} ]}
}), }),
InsertFieldsDefaultValueJson = DefaultInsertFieldsDefaultValueJson(),
FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] { FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] {
new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Aktif", CustomValueType = FieldCustomValueTypeEnum.Value },
}), }),

View file

@ -4,12 +4,17 @@ using Volo.Abp.MultiTenancy;
namespace Erp.Platform.Entities; namespace Erp.Platform.Entities;
public class Behavior : FullAuditedEntity<Guid>, IMultiTenant public class Behavior : FullAuditedEntity<string>, IMultiTenant
{ {
public Guid? TenantId { get; set; } public Guid? TenantId { get; set; }
public string Name { get; set; } public string Name { get; set; }
Guid? IMultiTenant.TenantId => TenantId; Guid? IMultiTenant.TenantId => TenantId;
public Behavior(string id)
{
Id = id;
}
} }

View file

@ -4,12 +4,17 @@ using Volo.Abp.MultiTenancy;
namespace Erp.Platform.Entities; namespace Erp.Platform.Entities;
public class Disease : FullAuditedEntity<Guid>, IMultiTenant public class Disease : FullAuditedEntity<string>, IMultiTenant
{ {
public Guid? TenantId { get; set; } public Guid? TenantId { get; set; }
public string Name { get; set; } public string Name { get; set; }
Guid? IMultiTenant.TenantId => TenantId; Guid? IMultiTenant.TenantId => TenantId;
public Disease(string id)
{
Id = id;
}
} }

View file

@ -4,12 +4,17 @@ using Volo.Abp.MultiTenancy;
namespace Erp.Platform.Entities; namespace Erp.Platform.Entities;
public class Document : FullAuditedEntity<Guid>, IMultiTenant public class Document : FullAuditedEntity<string>, IMultiTenant
{ {
public Guid? TenantId { get; set; } public Guid? TenantId { get; set; }
public string Name { get; set; } public string Name { get; set; }
Guid? IMultiTenant.TenantId => TenantId; Guid? IMultiTenant.TenantId => TenantId;
public Document(string id)
{
Id = id;
}
} }

View file

@ -1,5 +1,4 @@
using System; using System;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing; using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy; using Volo.Abp.MultiTenancy;

View file

@ -4,14 +4,19 @@ using Volo.Abp.MultiTenancy;
namespace Erp.Platform.Entities; namespace Erp.Platform.Entities;
public class Skill : FullAuditedEntity<Guid>, IMultiTenant public class Skill : FullAuditedEntity<string>, IMultiTenant
{ {
public Guid? TenantId { get; set; } public Guid? TenantId { get; set; }
public Guid SkillTypeId { get; set; }
public string SkillTypeId { get; set; }
public SkillType SkillType { get; set; }
public string Name { get; set; } public string Name { get; set; }
Guid? IMultiTenant.TenantId => TenantId; Guid? IMultiTenant.TenantId => TenantId;
public SkillType SkillType { get; set; } public Skill(string id)
{
Id = id;
}
} }

View file

@ -4,16 +4,21 @@ using Volo.Abp.MultiTenancy;
namespace Erp.Platform.Entities; namespace Erp.Platform.Entities;
public class SkillLevel : FullAuditedEntity<Guid>, IMultiTenant public class SkillLevel : FullAuditedEntity<string>, IMultiTenant
{ {
public Guid? TenantId { get; set; } public Guid? TenantId { get; set; }
public string SkillTypeId { get; set; }
public SkillType SkillType { get; set; }
public string Name { get; set; } public string Name { get; set; }
public int Progress { get; set; } public int Progress { get; set; }
public bool IsDefault { get; set; } public bool IsDefault { get; set; }
Guid? IMultiTenant.TenantId => TenantId; Guid? IMultiTenant.TenantId => TenantId;
public Guid SkillTypeId { get; set; } public SkillLevel(string id)
public SkillType SkillType { get; set; } {
Id = id;
}
} }

View file

@ -5,7 +5,7 @@ using Volo.Abp.MultiTenancy;
namespace Erp.Platform.Entities; namespace Erp.Platform.Entities;
public class SkillType : FullAuditedEntity<Guid>, IMultiTenant public class SkillType : FullAuditedEntity<string>, IMultiTenant
{ {
public Guid? TenantId { get; set; } public Guid? TenantId { get; set; }
@ -15,4 +15,9 @@ public class SkillType : FullAuditedEntity<Guid>, IMultiTenant
public ICollection<Skill> Skills { get; set; } public ICollection<Skill> Skills { get; set; }
public ICollection<SkillLevel> Levels { get; set; } public ICollection<SkillLevel> Levels { get; set; }
public SkillType(string id)
{
Id = id;
}
} }

View file

@ -4,12 +4,17 @@ using Volo.Abp.MultiTenancy;
namespace Erp.Platform.Entities; namespace Erp.Platform.Entities;
public class Vaccine : FullAuditedEntity<Guid>, IMultiTenant public class Vaccine : FullAuditedEntity<string>, IMultiTenant
{ {
public Guid? TenantId { get; set; } public Guid? TenantId { get; set; }
public string Name { get; set; } public string Name { get; set; }
Guid? IMultiTenant.TenantId => TenantId; Guid? IMultiTenant.TenantId => TenantId;
public Vaccine(string id)
{
Id = id;
}
} }

View file

@ -4,7 +4,7 @@ using Volo.Abp.MultiTenancy;
namespace Erp.Platform.Entities; namespace Erp.Platform.Entities;
public class Vehicle : FullAuditedEntity<Guid>, IMultiTenant public class Vehicle : FullAuditedEntity<string>, IMultiTenant
{ {
public Guid? TenantId { get; set; } public Guid? TenantId { get; set; }
@ -25,5 +25,10 @@ public class Vehicle : FullAuditedEntity<Guid>, IMultiTenant
public string Status { get; set; } public string Status { get; set; }
Guid? IMultiTenant.TenantId => TenantId; Guid? IMultiTenant.TenantId => TenantId;
public Vehicle(string id)
{
Id = id;
}
} }

View file

@ -4,7 +4,7 @@ using Volo.Abp.MultiTenancy;
namespace Erp.Platform.Entities; namespace Erp.Platform.Entities;
public class WorkHour : FullAuditedEntity<Guid>, IMultiTenant public class WorkHour : FullAuditedEntity<string>, IMultiTenant
{ {
public Guid? TenantId { get; set; } public Guid? TenantId { get; set; }
@ -21,5 +21,10 @@ public class WorkHour : FullAuditedEntity<Guid>, IMultiTenant
public bool? Sunday { get; set; } public bool? Sunday { get; set; }
Guid? IMultiTenant.TenantId => TenantId; Guid? IMultiTenant.TenantId => TenantId;
public WorkHour(string id)
{
Id = id;
}
} }

View file

@ -1,5 +1,4 @@
using System; using System;
using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing; using Volo.Abp.Domain.Entities.Auditing;

View file

@ -899,7 +899,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Sector)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Sector)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).IsRequired().HasMaxLength(128); b.Property(x => x.Id).HasMaxLength(128);
b.Property(x => x.Name).IsRequired().HasMaxLength(128); b.Property(x => x.Name).IsRequired().HasMaxLength(128);
}); });
@ -948,7 +948,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Country)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Country)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).IsRequired().HasMaxLength(8); b.Property(x => x.Id).HasMaxLength(8);
b.Property(x => x.Code).IsRequired().HasMaxLength(8); b.Property(x => x.Code).IsRequired().HasMaxLength(8);
b.Property(x => x.Name).IsRequired().HasMaxLength(128); b.Property(x => x.Name).IsRequired().HasMaxLength(128);
b.Property(x => x.GroupName).HasMaxLength(128); b.Property(x => x.GroupName).HasMaxLength(128);
@ -996,6 +996,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillType)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillType)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).HasMaxLength(128);
b.Property(x => x.Name).IsRequired().HasMaxLength(128); b.Property(x => x.Name).IsRequired().HasMaxLength(128);
b.HasMany(x => x.Skills) b.HasMany(x => x.Skills)
@ -1016,8 +1017,9 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Skill)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Skill)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).HasMaxLength(128);
b.Property(x => x.SkillTypeId).IsRequired().HasMaxLength(128);
b.Property(x => x.Name).IsRequired().HasMaxLength(128); b.Property(x => x.Name).IsRequired().HasMaxLength(128);
b.Property(x => x.SkillTypeId).IsRequired();
}); });
builder.Entity<SkillLevel>(b => builder.Entity<SkillLevel>(b =>
@ -1025,8 +1027,9 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillLevel)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.SkillLevel)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).HasMaxLength(128);
b.Property(x => x.SkillTypeId).IsRequired().HasMaxLength(128);
b.Property(x => x.Name).IsRequired().HasMaxLength(128); b.Property(x => x.Name).IsRequired().HasMaxLength(128);
b.Property(x => x.SkillTypeId).IsRequired();
b.Property(x => x.Progress).HasDefaultValue(0); b.Property(x => x.Progress).HasDefaultValue(0);
b.Property(x => x.IsDefault).HasDefaultValue(false); b.Property(x => x.IsDefault).HasDefaultValue(false);
}); });
@ -1036,7 +1039,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.UomCategory)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.UomCategory)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).IsRequired().HasMaxLength(128); b.Property(x => x.Id).HasMaxLength(128);
b.Property(x => x.Name).IsRequired().HasMaxLength(128); b.Property(x => x.Name).IsRequired().HasMaxLength(128);
}); });
@ -1046,7 +1049,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Uom)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Uom)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).IsRequired().HasMaxLength(64); b.Property(x => x.Id).HasMaxLength(64);
b.Property(x => x.Name).IsRequired().HasMaxLength(64); b.Property(x => x.Name).IsRequired().HasMaxLength(64);
b.Property(x => x.Type).IsRequired().HasConversion<string>().HasMaxLength(32); b.Property(x => x.Type).IsRequired().HasConversion<string>().HasMaxLength(32);
b.Property(x => x.Ratio).HasPrecision(18, 6); b.Property(x => x.Ratio).HasPrecision(18, 6);
@ -1234,6 +1237,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Behavior)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Behavior)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).HasMaxLength(128);
b.Property(x => x.Name).IsRequired().HasMaxLength(128); b.Property(x => x.Name).IsRequired().HasMaxLength(128);
}); });
@ -1381,6 +1385,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Disease)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Disease)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).HasMaxLength(128);
b.Property(x => x.Name).IsRequired().HasMaxLength(128); b.Property(x => x.Name).IsRequired().HasMaxLength(128);
}); });
@ -1401,6 +1406,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Vaccine)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Vaccine)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).HasMaxLength(128);
b.Property(x => x.Name).HasMaxLength(128).IsRequired(); b.Property(x => x.Name).HasMaxLength(128).IsRequired();
}); });
@ -1443,6 +1449,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Document)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Document)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).HasMaxLength(80);
b.Property(x => x.Name).HasMaxLength(80).IsRequired(); b.Property(x => x.Name).HasMaxLength(80).IsRequired();
}); });
@ -1451,6 +1458,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Vehicle)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Vehicle)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).HasMaxLength(10);
b.Property(x => x.Plate).HasMaxLength(10).IsRequired(); b.Property(x => x.Plate).HasMaxLength(10).IsRequired();
b.Property(x => x.Brand).HasMaxLength(64); b.Property(x => x.Brand).HasMaxLength(64);
b.Property(x => x.ModelYear); b.Property(x => x.ModelYear);
@ -1473,6 +1481,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.WorkHour)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.WorkHour)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).HasMaxLength(64);
b.Property(x => x.Name).HasMaxLength(64).IsRequired(); b.Property(x => x.Name).HasMaxLength(64).IsRequired();
b.Property(x => x.StartTime).HasMaxLength(8).IsRequired(); b.Property(x => x.StartTime).HasMaxLength(8).IsRequired();
b.Property(x => x.EndTime).HasMaxLength(8).IsRequired(); b.Property(x => x.EndTime).HasMaxLength(8).IsRequired();
@ -2473,7 +2482,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.PaymentTerm)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.PaymentTerm)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).IsRequired().HasMaxLength(128); b.Property(x => x.Id).HasMaxLength(128);
b.Property(x => x.Name).IsRequired().HasMaxLength(128); b.Property(x => x.Name).IsRequired().HasMaxLength(128);
b.Property(x => x.Description).IsRequired().HasMaxLength(512); b.Property(x => x.Description).IsRequired().HasMaxLength(512);
b.Property(x => x.IsActive).HasDefaultValue(true); b.Property(x => x.IsActive).HasDefaultValue(true);
@ -2923,7 +2932,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Workcenter)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Workcenter)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).IsRequired().HasMaxLength(128); b.Property(x => x.Id).HasMaxLength(128);
b.Property(x => x.Code).IsRequired().HasMaxLength(128); b.Property(x => x.Code).IsRequired().HasMaxLength(128);
b.Property(x => x.Name).IsRequired().HasMaxLength(256); b.Property(x => x.Name).IsRequired().HasMaxLength(256);
b.Property(x => x.Description).HasMaxLength(512); b.Property(x => x.Description).HasMaxLength(512);
@ -3116,7 +3125,7 @@ public class PlatformDbContext :
b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Warehouse)), Prefix.DbSchema); b.ToTable(TableNameResolver.GetFullTableName(nameof(TableNameEnum.Warehouse)), Prefix.DbSchema);
b.ConfigureByConvention(); b.ConfigureByConvention();
b.Property(x => x.Id).IsRequired().HasMaxLength(64); b.Property(x => x.Id).HasMaxLength(64);
b.Property(x => x.Code).IsRequired().HasMaxLength(64); b.Property(x => x.Code).IsRequired().HasMaxLength(64);
b.Property(x => x.Name).IsRequired().HasMaxLength(256); b.Property(x => x.Name).IsRequired().HasMaxLength(256);
b.Property(x => x.Description).HasMaxLength(512); b.Property(x => x.Description).HasMaxLength(512);

View file

@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
namespace Erp.Platform.Migrations namespace Erp.Platform.Migrations
{ {
[DbContext(typeof(PlatformDbContext))] [DbContext(typeof(PlatformDbContext))]
[Migration("20251211195241_Initial")] [Migration("20251211210045_Initial")]
partial class Initial partial class Initial
{ {
/// <inheritdoc /> /// <inheritdoc />
@ -1301,8 +1301,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.Behavior", b => modelBuilder.Entity("Erp.Platform.Entities.Behavior", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -4531,8 +4532,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.Disease", b => modelBuilder.Entity("Erp.Platform.Entities.Disease", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -4647,8 +4649,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.Document", b => modelBuilder.Entity("Erp.Platform.Entities.Document", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(80)
.HasColumnType("nvarchar(80)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -14346,8 +14349,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.Skill", b => modelBuilder.Entity("Erp.Platform.Entities.Skill", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -14384,8 +14388,10 @@ namespace Erp.Platform.Migrations
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("nvarchar(128)");
b.Property<Guid>("SkillTypeId") b.Property<string>("SkillTypeId")
.HasColumnType("uniqueidentifier"); .IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uniqueidentifier")
@ -14400,8 +14406,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.SkillLevel", b => modelBuilder.Entity("Erp.Platform.Entities.SkillLevel", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -14448,8 +14455,10 @@ namespace Erp.Platform.Migrations
.HasColumnType("int") .HasColumnType("int")
.HasDefaultValue(0); .HasDefaultValue(0);
b.Property<Guid>("SkillTypeId") b.Property<string>("SkillTypeId")
.HasColumnType("uniqueidentifier"); .IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uniqueidentifier")
@ -14464,8 +14473,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.SkillType", b => modelBuilder.Entity("Erp.Platform.Entities.SkillType", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -15850,8 +15860,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.Vaccine", b => modelBuilder.Entity("Erp.Platform.Entities.Vaccine", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -15899,8 +15910,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.Vehicle", b => modelBuilder.Entity("Erp.Platform.Entities.Vehicle", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property<string>("AssistantDriverName") b.Property<string>("AssistantDriverName")
.HasMaxLength(64) .HasMaxLength(64)
@ -16632,8 +16644,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.WorkHour", b => modelBuilder.Entity("Erp.Platform.Entities.WorkHour", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")

View file

@ -670,7 +670,7 @@ namespace Erp.Platform.Migrations
name: "Adm_T_Behavior", name: "Adm_T_Behavior",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
@ -770,7 +770,7 @@ namespace Erp.Platform.Migrations
name: "Adm_T_Disease", name: "Adm_T_Disease",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
@ -790,7 +790,7 @@ namespace Erp.Platform.Migrations
name: "Adm_T_Document", name: "Adm_T_Document",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: false), Name = table.Column<string>(type: "nvarchar(80)", maxLength: 80, nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
@ -1022,7 +1022,7 @@ namespace Erp.Platform.Migrations
name: "Adm_T_SkillType", name: "Adm_T_SkillType",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
@ -1062,7 +1062,7 @@ namespace Erp.Platform.Migrations
name: "Adm_T_Vaccine", name: "Adm_T_Vaccine",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
@ -1082,7 +1082,7 @@ namespace Erp.Platform.Migrations
name: "Adm_T_Vehicle", name: "Adm_T_Vehicle",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Plate = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false), Plate = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
Brand = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), Brand = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
@ -1113,7 +1113,7 @@ namespace Erp.Platform.Migrations
name: "Adm_T_WorkHour", name: "Adm_T_WorkHour",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
StartTime = table.Column<DateTime>(type: "datetime2", maxLength: 8, nullable: false), StartTime = table.Column<DateTime>(type: "datetime2", maxLength: 8, nullable: false),
@ -3630,9 +3630,9 @@ namespace Erp.Platform.Migrations
name: "Adm_T_Skill", name: "Adm_T_Skill",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
SkillTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), SkillTypeId = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
@ -3657,12 +3657,12 @@ namespace Erp.Platform.Migrations
name: "Adm_T_SkillLevel", name: "Adm_T_SkillLevel",
columns: table => new columns: table => new
{ {
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), Id = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
SkillTypeId = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false), Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
Progress = table.Column<int>(type: "int", nullable: false, defaultValue: 0), Progress = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
IsDefault = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), IsDefault = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
SkillTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),

View file

@ -1298,8 +1298,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.Behavior", b => modelBuilder.Entity("Erp.Platform.Entities.Behavior", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -4528,8 +4529,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.Disease", b => modelBuilder.Entity("Erp.Platform.Entities.Disease", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -4644,8 +4646,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.Document", b => modelBuilder.Entity("Erp.Platform.Entities.Document", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(80)
.HasColumnType("nvarchar(80)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -14343,8 +14346,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.Skill", b => modelBuilder.Entity("Erp.Platform.Entities.Skill", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -14381,8 +14385,10 @@ namespace Erp.Platform.Migrations
.HasMaxLength(128) .HasMaxLength(128)
.HasColumnType("nvarchar(128)"); .HasColumnType("nvarchar(128)");
b.Property<Guid>("SkillTypeId") b.Property<string>("SkillTypeId")
.HasColumnType("uniqueidentifier"); .IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uniqueidentifier")
@ -14397,8 +14403,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.SkillLevel", b => modelBuilder.Entity("Erp.Platform.Entities.SkillLevel", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -14445,8 +14452,10 @@ namespace Erp.Platform.Migrations
.HasColumnType("int") .HasColumnType("int")
.HasDefaultValue(0); .HasDefaultValue(0);
b.Property<Guid>("SkillTypeId") b.Property<string>("SkillTypeId")
.HasColumnType("uniqueidentifier"); .IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<Guid?>("TenantId") b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier") .HasColumnType("uniqueidentifier")
@ -14461,8 +14470,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.SkillType", b => modelBuilder.Entity("Erp.Platform.Entities.SkillType", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -15847,8 +15857,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.Vaccine", b => modelBuilder.Entity("Erp.Platform.Entities.Vaccine", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(128)
.HasColumnType("nvarchar(128)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")
@ -15896,8 +15907,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.Vehicle", b => modelBuilder.Entity("Erp.Platform.Entities.Vehicle", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property<string>("AssistantDriverName") b.Property<string>("AssistantDriverName")
.HasMaxLength(64) .HasMaxLength(64)
@ -16629,8 +16641,9 @@ namespace Erp.Platform.Migrations
modelBuilder.Entity("Erp.Platform.Entities.WorkHour", b => modelBuilder.Entity("Erp.Platform.Entities.WorkHour", b =>
{ {
b.Property<Guid>("Id") b.Property<string>("Id")
.HasColumnType("uniqueidentifier"); .HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<DateTime>("CreationTime") b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2") .HasColumnType("datetime2")

View file

@ -35,14 +35,14 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
private readonly IRepository<BlogPost, Guid> _blogPostsRepository; private readonly IRepository<BlogPost, Guid> _blogPostsRepository;
private readonly IRepository<Contact, Guid> _contactRepository; private readonly IRepository<Contact, Guid> _contactRepository;
private readonly IRepository<Sector, string> _sectorRepository; private readonly IRepository<Sector, string> _sectorRepository;
private readonly IRepository<SkillType, Guid> _skillTypeRepository; private readonly IRepository<SkillType, string> _skillTypeRepository;
private readonly IRepository<Skill, Guid> _skillRepository; private readonly IRepository<Skill, string> _skillRepository;
private readonly IRepository<SkillLevel, Guid> _skillLevelRepository; private readonly IRepository<SkillLevel, string> _skillLevelRepository;
private readonly IRepository<UomCategory, string> _uomCategoryRepository; private readonly IRepository<UomCategory, string> _uomCategoryRepository;
private readonly IRepository<Uom, string> _uomRepository; private readonly IRepository<Uom, string> _uomRepository;
private readonly IRepository<Behavior, Guid> _behaviorRepository; private readonly IRepository<Behavior, string> _behaviorRepository;
private readonly IRepository<Disease, Guid> _diseaseRepository; private readonly IRepository<Disease, string> _diseaseRepository;
private readonly IRepository<Document, Guid> _documentRepository; private readonly IRepository<Document, string> _documentRepository;
private readonly IRepository<EducationStatus, Guid> _educationStatusRepository; private readonly IRepository<EducationStatus, Guid> _educationStatusRepository;
private readonly IRepository<EventType, Guid> _eventTypeRepository; private readonly IRepository<EventType, Guid> _eventTypeRepository;
private readonly IRepository<EventCategory, Guid> _eventCategoryRepository; private readonly IRepository<EventCategory, Guid> _eventCategoryRepository;
@ -56,10 +56,10 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
private readonly IRepository<Interesting, Guid> _interestingRepository; private readonly IRepository<Interesting, Guid> _interestingRepository;
private readonly IRepository<SalesRejectionReason, Guid> _salesRejectionReasonRepository; private readonly IRepository<SalesRejectionReason, Guid> _salesRejectionReasonRepository;
private readonly IRepository<Source, Guid> _sourceRepository; private readonly IRepository<Source, Guid> _sourceRepository;
private readonly IRepository<Vaccine, Guid> _vaccineRepository; private readonly IRepository<Vaccine, string> _vaccineRepository;
private readonly IRepository<NoteType, Guid> _noteTypeRepository; private readonly IRepository<NoteType, Guid> _noteTypeRepository;
private readonly IRepository<ClassCancellationReason, Guid> _classCancellationReasonRepository; private readonly IRepository<ClassCancellationReason, Guid> _classCancellationReasonRepository;
private readonly IRepository<WorkHour, Guid> _workHourRepository; private readonly IRepository<WorkHour, string> _workHourRepository;
private readonly IRepository<Classroom, Guid> _classroomRepository; private readonly IRepository<Classroom, Guid> _classroomRepository;
private readonly IRepository<QuestionTag, Guid> _tagRepository; private readonly IRepository<QuestionTag, Guid> _tagRepository;
private readonly IRepository<QuestionPool, Guid> _questionPoolRepository; private readonly IRepository<QuestionPool, Guid> _questionPoolRepository;
@ -164,9 +164,9 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
IRepository<Sector, string> sectorRepository, IRepository<Sector, string> sectorRepository,
IRepository<UomCategory, string> uomCategoryRepository, IRepository<UomCategory, string> uomCategoryRepository,
IRepository<Uom, string> uomRepository, IRepository<Uom, string> uomRepository,
IRepository<SkillType, Guid> skillTypeRepository, IRepository<SkillType, string> skillTypeRepository,
IRepository<Skill, Guid> skillRepository, IRepository<Skill, string> skillRepository,
IRepository<SkillLevel, Guid> skillLevelRepository, IRepository<SkillLevel, string> skillLevelRepository,
IRepository<CustomEndpoint, Guid> customEndpointRepository, IRepository<CustomEndpoint, Guid> customEndpointRepository,
IRepository<CustomComponent, Guid> customComponentRepository, IRepository<CustomComponent, Guid> customComponentRepository,
IRepository<ReportCategory, Guid> reportCategoriesRepository, IRepository<ReportCategory, Guid> reportCategoriesRepository,
@ -179,12 +179,12 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
IRepository<BlogPost, Guid> blogPostsRepository, IRepository<BlogPost, Guid> blogPostsRepository,
IRepository<Contact, Guid> contactRepository, IRepository<Contact, Guid> contactRepository,
IRepository<Classroom, Guid> classroomRepository, IRepository<Classroom, Guid> classroomRepository,
IRepository<Behavior, Guid> behaviorRepository, IRepository<Behavior, string> behaviorRepository,
IRepository<Disease, Guid> diseaseRepository, IRepository<Disease, string> diseaseRepository,
IRepository<Document, Guid> documentRepository, IRepository<Document, string> documentRepository,
IRepository<EducationStatus, Guid> educationStatusRepository, IRepository<EducationStatus, Guid> educationStatusRepository,
IRepository<Vaccine, Guid> vaccineRepository, IRepository<Vaccine, string> vaccineRepository,
IRepository<WorkHour, Guid> workHourRepository, IRepository<WorkHour, string> workHourRepository,
IRepository<SalesRejectionReason, Guid> salesRejectionReasonRepository, IRepository<SalesRejectionReason, Guid> salesRejectionReasonRepository,
IRepository<NoteType, Guid> noteTypeRepository, IRepository<NoteType, Guid> noteTypeRepository,
IRepository<MeetingMethod, Guid> meetingMethodRepository, IRepository<MeetingMethod, Guid> meetingMethodRepository,
@ -527,7 +527,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
if (!exists) if (!exists)
{ {
await _skillTypeRepository.InsertAsync(new SkillType { Name = item.Name }, autoSave: true); await _skillTypeRepository.InsertAsync(new SkillType(item.Name) { Name = item.Name }, autoSave: true);
} }
} }
@ -540,7 +540,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
var skillType = await _skillTypeRepository.FirstOrDefaultAsync(x => x.Name == item.SkillTypeName); var skillType = await _skillTypeRepository.FirstOrDefaultAsync(x => x.Name == item.SkillTypeName);
if (skillType != null) if (skillType != null)
{ {
await _skillRepository.InsertAsync(new Skill await _skillRepository.InsertAsync(new Skill(item.Name)
{ {
Name = item.Name, Name = item.Name,
SkillTypeId = skillType.Id SkillTypeId = skillType.Id
@ -558,7 +558,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
var skillType = await _skillTypeRepository.FirstOrDefaultAsync(x => x.Name == item.SkillTypeName); var skillType = await _skillTypeRepository.FirstOrDefaultAsync(x => x.Name == item.SkillTypeName);
if (skillType != null) if (skillType != null)
{ {
await _skillLevelRepository.InsertAsync(new SkillLevel await _skillLevelRepository.InsertAsync(new SkillLevel(item.Name)
{ {
Name = item.Name, Name = item.Name,
Progress = item.Progress, Progress = item.Progress,
@ -766,7 +766,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
if (!exists) if (!exists)
{ {
await _behaviorRepository.InsertAsync(new() await _behaviorRepository.InsertAsync(new Behavior(item.Name)
{ {
Name = item.Name, Name = item.Name,
}); });
@ -779,7 +779,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
if (!exists) if (!exists)
{ {
await _documentRepository.InsertAsync(new() await _documentRepository.InsertAsync(new Document(item.Name)
{ {
Name = item.Name, Name = item.Name,
}); });
@ -792,7 +792,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
if (!exists) if (!exists)
{ {
await _diseaseRepository.InsertAsync(new() await _diseaseRepository.InsertAsync(new Disease(item.Name)
{ {
Name = item.Name, Name = item.Name,
}); });
@ -819,7 +819,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
if (!exists) if (!exists)
{ {
await _vaccineRepository.InsertAsync(new() await _vaccineRepository.InsertAsync(new Vaccine(item.Name)
{ {
Name = item.Name, Name = item.Name,
}); });
@ -832,7 +832,7 @@ public class TenantDataSeeder : IDataSeedContributor, ITransientDependency
if (!exists) if (!exists)
{ {
await _workHourRepository.InsertAsync(new() await _workHourRepository.InsertAsync(new WorkHour(item.Name)
{ {
Name = item.Name, Name = item.Name,
StartTime = item.StartTime, StartTime = item.StartTime,