From 4e8520eb010c4404abbd0e20197212f08930fb44 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Mon, 10 Apr 2023 16:28:05 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=94=E0=B8=B4=E0=B8=87=E0=B8=82=E0=B9=89?= =?UTF-8?q?=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B8=AB=E0=B8=A5=E0=B8=B1?= =?UTF-8?q?=E0=B8=81=E0=B8=88=E0=B8=B2=E0=B8=81=20db=E0=B8=81=E0=B8=A5?= =?UTF-8?q?=E0=B8=B2=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Recurit.Exam.Service.csproj | 1 + Controllers/CMSCandidateController.cs | 2 +- Controllers/DistrictController.cs | 63 - Controllers/EducationLevelController.cs | 61 - Controllers/PrefixController.cs | 61 - Controllers/ProvinceController.cs | 62 - Controllers/RelationshipController.cs | 61 - Controllers/ReligionController.cs | 61 - Controllers/ReportController.cs | 120 ++ Controllers/SubDistrictController.cs | 62 - Data/ApplicationDbContext.cs | 14 +- Data/DatabaseSeeder.cs | 296 ---- Data/MetadataDbContext.cs | 55 + .../ApplicationDbContextModelSnapshot.cs | 754 ++------ ...te table metadata use key main.Designer.cs | 1527 +++++++++++++++++ ...5737_update table metadata use key main.cs | 1218 +++++++++++++ Models/CMSCandidate.cs | 17 +- Models/Candidate.cs | 65 +- Models/Education.cs | 7 +- Models/OrganizationOrganization.cs | 15 + Models/OrganizationShortName.cs | 19 + Program.cs | 15 +- Report/rptBillPayment.trdp | Bin 0 -> 3310 bytes Response/CandidateAddressResponseItem.cs | 18 +- Response/CandidateFamilyResponseItem.cs | 9 +- Response/CandidateInformationResponseItem.cs | 12 +- Response/CandidateResponseItem.cs | 39 +- Services/CMSCandidateService.cs | 37 +- Services/CandidateService.cs | 265 +-- Services/DistrictService.cs | 101 -- Services/EducationLevelService.cs | 98 -- Services/PeriodExamService.cs | 78 +- Services/PrefixService.cs | 98 -- Services/ProvinceService.cs | 98 -- Services/RelationshipService.cs | 97 -- Services/ReligionService.cs | 98 -- Services/SubDistrictService.cs | 119 -- appsettings.Development.json | 4 +- appsettings.json | 4 +- bin/Debug/net7.0/appsettings.Development.json | 4 +- bin/Debug/net7.0/appsettings.json | 4 +- obj/Debug/net7.0/project.razor.json | 504 +++--- obj/project.assets.json | 963 ++++++++++- obj/project.nuget.cache | 26 +- 44 files changed, 4642 insertions(+), 2590 deletions(-) delete mode 100644 Controllers/DistrictController.cs delete mode 100644 Controllers/EducationLevelController.cs delete mode 100644 Controllers/PrefixController.cs delete mode 100644 Controllers/ProvinceController.cs delete mode 100644 Controllers/RelationshipController.cs delete mode 100644 Controllers/ReligionController.cs create mode 100644 Controllers/ReportController.cs delete mode 100644 Controllers/SubDistrictController.cs create mode 100644 Data/MetadataDbContext.cs create mode 100644 Migrations/20230410055737_update table metadata use key main.Designer.cs create mode 100644 Migrations/20230410055737_update table metadata use key main.cs create mode 100644 Models/OrganizationOrganization.cs create mode 100644 Models/OrganizationShortName.cs create mode 100644 Report/rptBillPayment.trdp delete mode 100644 Services/DistrictService.cs delete mode 100644 Services/EducationLevelService.cs delete mode 100644 Services/PrefixService.cs delete mode 100644 Services/ProvinceService.cs delete mode 100644 Services/RelationshipService.cs delete mode 100644 Services/ReligionService.cs delete mode 100644 Services/SubDistrictService.cs diff --git a/BMA.EHR.Recurit.Exam.Service.csproj b/BMA.EHR.Recurit.Exam.Service.csproj index c2997b6..eaab20c 100644 --- a/BMA.EHR.Recurit.Exam.Service.csproj +++ b/BMA.EHR.Recurit.Exam.Service.csproj @@ -78,6 +78,7 @@ + diff --git a/Controllers/CMSCandidateController.cs b/Controllers/CMSCandidateController.cs index 0714855..c9e4d73 100644 --- a/Controllers/CMSCandidateController.cs +++ b/Controllers/CMSCandidateController.cs @@ -155,7 +155,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status401Unauthorized)] [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public async Task> UpdateBannerAsync(CMSCandidate banner) + public async Task> UpdateBannerAsync() { try { diff --git a/Controllers/DistrictController.cs b/Controllers/DistrictController.cs deleted file mode 100644 index b77840e..0000000 --- a/Controllers/DistrictController.cs +++ /dev/null @@ -1,63 +0,0 @@ -using BMA.EHR.Recurit.Exam.Service.Response; -using BMA.EHR.Recurit.Exam.Service.Services; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Swashbuckle.AspNetCore.Annotations; - -namespace BMA.EHR.Recurit.Exam.Service.Controllers -{ - [Route("api/v{version:apiVersion}/district")] - [ApiVersion("1.0")] - [ApiController] - [Produces("application/json")] - [Authorize] - [SwaggerTag("จัดการข้อมูลอำเภอ เพื่อนำไปใช้งานในระบบ")] - public class DistrictController : BaseController - { - #region " Fields " - - private readonly DistrictService _districtService; - - #endregion - - #region " Constructor and Destructor " - - public DistrictController(DistrictService districtService) - { - _districtService = districtService; - } - - #endregion - - #region " Methods " - - /// - /// อ่านข้อมูลจาก Relational Db โดยแสดงเฉพาะข้อมูลที่ Active เท่านั้น - /// - /// รหัสจังหวัด - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("{province:length(36)}")] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public async Task> GetsAsync(string province) - { - try - { - var items = await _districtService.GetsAsync(provinceId: province, showAll: false); - - return Success(items); - } - catch (Exception ex) - { - return Error(ex); - } - } - - #endregion - - } -} \ No newline at end of file diff --git a/Controllers/EducationLevelController.cs b/Controllers/EducationLevelController.cs deleted file mode 100644 index e8c0765..0000000 --- a/Controllers/EducationLevelController.cs +++ /dev/null @@ -1,61 +0,0 @@ -using BMA.EHR.Recurit.Exam.Service.Response; -using BMA.EHR.Recurit.Exam.Service.Services; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Swashbuckle.AspNetCore.Annotations; - -namespace BMA.EHR.Recurit.Exam.Service.Controllers -{ - [Route("api/v{version:apiVersion}/education-level")] - [ApiVersion("1.0")] - [ApiController] - [Produces("application/json")] - [Authorize] - [SwaggerTag("จัดการข้อมูลระดับการศึกษา เพื่อนำไปใช้งานในระบบ")] - public class EducationLevelController : BaseController - { - #region " Fields " - - private readonly EducationLevelService _educationLevelService; - - #endregion - - #region " Constructor and Destructor " - - public EducationLevelController(EducationLevelService educationLevelService) - { - _educationLevelService = educationLevelService; - } - - #endregion - - #region " Methods " - - /// - /// อ่านข้อมูลจาก Relational Db โดยแสดงเฉพาะข้อมูลที่ Active เท่านั้น - /// - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public async Task> GetsAsync() - { - try - { - var items = await _educationLevelService.GetsAsync(showAll: false); - - return Success(items); - } - catch (Exception ex) - { - return Error(ex); - } - } - - #endregion - } -} diff --git a/Controllers/PrefixController.cs b/Controllers/PrefixController.cs deleted file mode 100644 index bbea613..0000000 --- a/Controllers/PrefixController.cs +++ /dev/null @@ -1,61 +0,0 @@ -using BMA.EHR.Recurit.Exam.Service.Response; -using BMA.EHR.Recurit.Exam.Service.Services; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Swashbuckle.AspNetCore.Annotations; - -namespace BMA.EHR.Recurit.Exam.Service.Controllers -{ - [Route("api/v{version:apiVersion}/prefix")] - [ApiVersion("1.0")] - [ApiController] - [Produces("application/json")] - [Authorize] - [SwaggerTag("จัดการข้อมูลคำนำหน้า เพื่อนำไปใช้งานในระบบ")] - public class PrefixController : BaseController - { - #region " Fields " - - private readonly PrefixService _prefixService; - - #endregion - - #region " Constructor and Destructor " - - public PrefixController(PrefixService prefixService) - { - _prefixService = prefixService; - } - - #endregion - - #region " Methods " - - /// - /// อ่านข้อมูลจาก Relational Db โดยแสดงเฉพาะ ข้อมูลที่ Active เท่านั้น - /// - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public async Task> GetsAsync() - { - try - { - var items = await _prefixService.GetsAsync(showAll: false); - - return Success(items); - } - catch (Exception ex) - { - return Error(ex); - } - } - - #endregion - } -} diff --git a/Controllers/ProvinceController.cs b/Controllers/ProvinceController.cs deleted file mode 100644 index dd76d4f..0000000 --- a/Controllers/ProvinceController.cs +++ /dev/null @@ -1,62 +0,0 @@ -using BMA.EHR.Recurit.Exam.Service.Response; -using BMA.EHR.Recurit.Exam.Service.Services; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Swashbuckle.AspNetCore.Annotations; - -namespace BMA.EHR.Recurit.Exam.Service.Controllers -{ - [Route("api/v{version:apiVersion}/province")] - [ApiVersion("1.0")] - [ApiController] - [Produces("application/json")] - [Authorize] - [SwaggerTag("จัดการข้อมูลจังหวัด เพื่อนำไปใช้งานในระบบ")] - public class ProvinceController : BaseController - { - #region " Fields " - - private readonly ProvinceService _provinceService; - - #endregion - - #region " Constructor and Destructor " - - public ProvinceController(ProvinceService provinceService) - { - _provinceService = provinceService; - } - - #endregion - - #region " Methods " - - /// - /// อ่านข้อมูลจาก Relational Db โดยแสดงเฉพาะข้อมูลที่ Active เท่านั้น - /// - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public async Task> GetsAsync() - { - try - { - var items = await _provinceService.GetsAsync(showAll: false); - - return Success(items); - } - catch (Exception ex) - { - return Error(ex); - } - } - - #endregion - - } -} \ No newline at end of file diff --git a/Controllers/RelationshipController.cs b/Controllers/RelationshipController.cs deleted file mode 100644 index 7810a27..0000000 --- a/Controllers/RelationshipController.cs +++ /dev/null @@ -1,61 +0,0 @@ -using BMA.EHR.Recurit.Exam.Service.Response; -using BMA.EHR.Recurit.Exam.Service.Services; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Swashbuckle.AspNetCore.Annotations; - -namespace BMA.EHR.Recurit.Exam.Service.Controllers -{ - [Route("api/v{version:apiVersion}/relationship")] - [ApiVersion("1.0")] - [ApiController] - [Produces("application/json")] - [Authorize] - [SwaggerTag("จัดการข้อมูลสถานะภาพ เพื่อนำไปใช้งานในระบบ")] - public class RelationshipController : BaseController - { - #region " Fields " - - private readonly RelationshipService _relationshipService; - - #endregion - - #region " Constructor and Destructor " - - public RelationshipController(RelationshipService relationshipService) - { - _relationshipService = relationshipService; - } - - #endregion - - #region " Methods " - - /// - /// อ่านข้อมูลจาก Relational Db โดยแสดงเฉพาะข้อมูลที่ Active เท่านั้น - /// - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public async Task> GetsAsync() - { - try - { - var items = await _relationshipService.GetsAsync(showAll: false); - - return Success(items); - } - catch (Exception ex) - { - return Error(ex); - } - } - - #endregion - } -} \ No newline at end of file diff --git a/Controllers/ReligionController.cs b/Controllers/ReligionController.cs deleted file mode 100644 index 6ccfe4c..0000000 --- a/Controllers/ReligionController.cs +++ /dev/null @@ -1,61 +0,0 @@ -using BMA.EHR.Recurit.Exam.Service.Response; -using BMA.EHR.Recurit.Exam.Service.Services; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Swashbuckle.AspNetCore.Annotations; - -namespace BMA.EHR.Recurit.Exam.Service.Controllers -{ - [Route("api/v{version:apiVersion}/religion")] - [ApiVersion("1.0")] - [ApiController] - [Produces("application/json")] - [Authorize] - [SwaggerTag("จัดการข้อมูลศาสนา เพื่อนำไปใช้งานในระบบ")] - public class ReligionController : BaseController - { - #region " Fields " - - private readonly ReligionService _religionService; - - #endregion - - #region " Constructor and Destructor " - - public ReligionController(ReligionService religionService) - { - _religionService = religionService; - } - - #endregion - - #region " Methods " - - /// - /// อ่านข้อมูลจาก Relational Db โดยแสดงเฉพาะข้อมูลที่ Active เท่านั้น - /// - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public async Task> GetsAsync() - { - try - { - var items = await _religionService.GetsAsync(showAll: false); - - return Success(items); - } - catch (Exception ex) - { - return Error(ex); - } - } - - #endregion - } -} diff --git a/Controllers/ReportController.cs b/Controllers/ReportController.cs new file mode 100644 index 0000000..4b54870 --- /dev/null +++ b/Controllers/ReportController.cs @@ -0,0 +1,120 @@ +// using BMA.EHR.Recurit.Exam.Service.Core; +// using BMA.EHR.Recurit.Exam.Service.Data; +// using BMA.EHR.Recurit.Exam.Service.Models; +// using BMA.EHR.Recurit.Exam.Service.Request; +// using BMA.EHR.Recurit.Exam.Service.Response; +// using BMA.EHR.Recurit.Exam.Service.Services; +// using Microsoft.AspNetCore.Authorization; +// using Microsoft.AspNetCore.Mvc; +// using Microsoft.EntityFrameworkCore; +// using Swashbuckle.AspNetCore.Annotations; +// using Telerik.Reporting; +// using Telerik.Reporting.Processing; + +// namespace BMA.EHR.Recurit.Exam.Service.Controllers +// { +// [Route("api/v{version:apiVersion}/report")] +// [ApiVersion("1.0")] +// [ApiController] +// [Produces("application/json")] +// [Authorize] +// [SwaggerTag("จัดการข้อมูลหน้าเว็บสมัครสอบ เพื่อนำไปใช้งานในระบบ")] +// public class ReportController : BaseController +// { +// #region " Fields " + +// private readonly ApplicationDbContext _context; +// private readonly CMSCandidateService _cmsCandidateService; +// private readonly IWebHostEnvironment _hostingEnvironment; + +// #endregion + +// #region " Constructor and Destructor " + +// public ReportController(ApplicationDbContext context, CMSCandidateService cmsCandidateService, IWebHostEnvironment hostingEnvironment) +// { +// _context = context; +// _cmsCandidateService = cmsCandidateService; +// _hostingEnvironment = hostingEnvironment; +// } + +// #endregion + +// public static IConfigurationRoot Configuration +// { +// get +// { +// return new ConfigurationBuilder() +// .SetBasePath(Directory.GetCurrentDirectory()) +// .AddJsonFile("appsettings.json") +// .Build(); +// } +// } + +// #region " Methods " + +// /// +// /// ใบเสร็จผู้สมัครสอบ +// /// +// /// รหัสใบสมัคร +// /// +// /// เมื่อทำการอ่านใบเสร็จผู้สมัครสอบสำเร็จ +// /// ไม่ได้ Login เข้าระบบ +// /// เมื่อเกิดข้อผิดพลาดในการทำงาน +// [HttpGet] +// [ProducesResponseType(StatusCodes.Status200OK)] +// [ProducesResponseType(StatusCodes.Status401Unauthorized)] +// [ProducesResponseType(StatusCodes.Status500InternalServerError)] +// public async Task> GetsAsync(string candidateId) +// { +// try +// { +// return Success("ยังใช้ไม่ได้จ้าา"); +// var candidate = await _context.Candidates.AsQueryable() +// .Where(x => x.Id == Guid.Parse(candidateId)) +// .Select(x => new +// { +// Fee = x.PeriodExam == null ? 0 : x.PeriodExam.Fee, +// // DateBill = DateTime.now, +// }) +// .FirstOrDefaultAsync(); + +// if (candidate == null) +// throw new Exception(GlobalMessages.CandidateNotFound); + +// var rptFile = ""; + +// rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Report", "rptBillPayment.trdp"); +// ReportPackager reportPackager = new ReportPackager(); +// Telerik.Reporting.Report? report = null; +// using (var sourceStream = System.IO.File.OpenRead(rptFile)) +// { +// report = (Telerik.Reporting.Report)reportPackager.UnpackageDocument(sourceStream); +// } + +// report.DataSource = candidate; +// System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable(); + +// InstanceReportSource instanceReportSource = new InstanceReportSource() +// { +// ReportDocument = report +// }; + + +// ReportProcessor reportProcessor = new ReportProcessor(Configuration); +// RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, deviceInfo); + +// var outputfile = $"DoctorOrderSheet_.pdf"; + +// return File(result.DocumentBytes, "application/pdf", outputfile); + +// } +// catch (Exception ex) +// { +// return Error(ex); +// } +// } + +// #endregion +// } +// } diff --git a/Controllers/SubDistrictController.cs b/Controllers/SubDistrictController.cs deleted file mode 100644 index 22baee1..0000000 --- a/Controllers/SubDistrictController.cs +++ /dev/null @@ -1,62 +0,0 @@ -using BMA.EHR.Recurit.Exam.Service.Response; -using BMA.EHR.Recurit.Exam.Service.Services; -using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Swashbuckle.AspNetCore.Annotations; - -namespace BMA.EHR.Recurit.Exam.Service.Controllers -{ - [Route("api/v{version:apiVersion}/sub-district")] - [ApiVersion("1.0")] - [ApiController] - [Produces("application/json")] - [Authorize] - [SwaggerTag("จัดการข้อมูลตำบล เพื่อนำไปใช้งานในระบบ")] - public class SubDistrictController : BaseController - { - #region " Fields " - - private readonly SubDistrictService _subDistrictService; - - #endregion - - #region " Constructor and Destructor " - - public SubDistrictController(SubDistrictService subDistrictService) - { - _subDistrictService = subDistrictService; - } - - #endregion - - #region " Methods " - - /// - /// อ่านข้อมูลจาก Relational Db โดยแสดงเฉพาะข้อมูลที่ Active เท่านั้น - /// - /// รหัสอำเภอ - /// - /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ - /// ไม่ได้ Login เข้าระบบ - /// เมื่อเกิดข้อผิดพลาดในการทำงาน - [HttpGet("{district:length(36)}")] - [ProducesResponseType(StatusCodes.Status200OK)] - [ProducesResponseType(StatusCodes.Status401Unauthorized)] - [ProducesResponseType(StatusCodes.Status500InternalServerError)] - public async Task> GetsAsync(string district) - { - try - { - var items = await _subDistrictService.GetsAsync(districtId: district, showAll: false); - - return Success(items); - } - catch (Exception ex) - { - return Error(ex); - } - } - - #endregion - } -} \ No newline at end of file diff --git a/Data/ApplicationDbContext.cs b/Data/ApplicationDbContext.cs index 647a69f..dda6300 100644 --- a/Data/ApplicationDbContext.cs +++ b/Data/ApplicationDbContext.cs @@ -15,19 +15,19 @@ namespace BMA.EHR.Recurit.Exam.Service.Data { } - public DbSet Prefixes { get; set; } + // public DbSet Prefixes { get; set; } - public DbSet Religions { get; set; } + // public DbSet Religions { get; set; } - public DbSet Relationships { get; set; } + // public DbSet Relationships { get; set; } - public DbSet EducationLevels { get; set; } + // public DbSet EducationLevels { get; set; } - public DbSet Provinces { get; set; } + // public DbSet Provinces { get; set; } - public DbSet Districts { get; set; } + // public DbSet Districts { get; set; } - public DbSet SubDistricts { get; set; } + // public DbSet SubDistricts { get; set; } public DbSet PeriodExams { get; set; } diff --git a/Data/DatabaseSeeder.cs b/Data/DatabaseSeeder.cs index 048af40..87cd5c9 100644 --- a/Data/DatabaseSeeder.cs +++ b/Data/DatabaseSeeder.cs @@ -13,302 +13,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Data #region " Seed Metadata " - public static async Task SeedPrefixAsync(WebApplication app) - { - using var scope = app.Services.CreateScope(); - var service = scope.ServiceProvider.GetRequiredService(); - var insertedPrefix = new List(); - - if ((await service.GetsAsync()).Count() == 0) - { - // read excels into object - var excelFile = "SeedPerson.xlsx"; - using (var excel = new ExcelPackage(new FileInfo(excelFile))) - { - // 1. Seed PrefixAsync - var workSheet = excel.Workbook.Worksheets.FirstOrDefault(x => x.Name.ToLower() == "prefix"); - var totalRows = workSheet?.Dimension.Rows; - - int row = 1; - - while (row <= totalRows) - { - var cell1 = workSheet?.Cells[row, 1]?.GetValue(); - if (cell1 == "" || cell1 == null) break; - - var prefix = insertedPrefix.Where(x => x.Name == (workSheet?.Cells[row, 1]?.GetValue() ?? "")).FirstOrDefault(); - if (prefix == null) - { - var inserted = new Prefix - { - Id = Guid.NewGuid(), - Name = workSheet?.Cells[row, 1]?.GetValue() ?? "", - IsActive = true, - CreatedFullName = "System Administrator", - CreatedAt = DateTime.Now - }; - insertedPrefix.Add(inserted); - - await service.CreateAsync(inserted); - } - row++; - } - } - } - } - - public static async Task SeedReligionAsync(WebApplication app) - { - using var scope = app.Services.CreateScope(); - var service = scope.ServiceProvider.GetRequiredService(); - var insertedReligion = new List(); - - if ((await service.GetsAsync()).Count() == 0) - { - // read excels into object - var excelFile = "SeedPerson.xlsx"; - using (var excel = new ExcelPackage(new FileInfo(excelFile))) - { - // 1. Seed Religion - var workSheet = excel.Workbook.Worksheets.FirstOrDefault(x => x.Name.ToLower() == "religion"); - var totalRows = workSheet?.Dimension.Rows; - - int row = 1; - - while (row <= totalRows) - { - var cell1 = workSheet?.Cells[row, 1]?.GetValue(); - if (cell1 == "" || cell1 == null) break; - - var religion = insertedReligion.Where(x => x.Name == (workSheet?.Cells[row, 1]?.GetValue() ?? "")).FirstOrDefault(); - if (religion == null) - { - var inserted = new Religion - { - Id = Guid.NewGuid(), - Name = workSheet?.Cells[row, 1]?.GetValue() ?? "", - IsActive = true, - CreatedFullName = "System Administrator", - CreatedAt = DateTime.Now - }; - insertedReligion.Add(inserted); - - await service.CreateAsync(inserted); - } - row++; - } - } - } - } - - public static async Task SeedRelationshipAsync(WebApplication app) - { - using var scope = app.Services.CreateScope(); - var service = scope.ServiceProvider.GetRequiredService(); - var insertedRelationship = new List(); - - if ((await service.GetsAsync()).Count() == 0) - { - // read excels into object - var excelFile = "SeedPerson.xlsx"; - using (var excel = new ExcelPackage(new FileInfo(excelFile))) - { - // 1. Seed Relationship - var workSheet = excel.Workbook.Worksheets.FirstOrDefault(x => x.Name.ToLower() == "relationship"); - var totalRows = workSheet?.Dimension.Rows; - - int row = 1; - - while (row <= totalRows) - { - var cell1 = workSheet?.Cells[row, 1]?.GetValue(); - if (cell1 == "" || cell1 == null) break; - - var relationship = insertedRelationship.Where(x => x.Name == (workSheet?.Cells[row, 1]?.GetValue() ?? "")).FirstOrDefault(); - if (relationship == null) - { - var inserted = new Relationship - { - Id = Guid.NewGuid(), - Name = workSheet?.Cells[row, 1]?.GetValue() ?? "", - IsActive = true, - CreatedFullName = "System Administrator", - CreatedAt = DateTime.Now - }; - insertedRelationship.Add(inserted); - - await service.CreateAsync(inserted); - } - row++; - } - } - } - } - - public static async Task SeedEducationLevelAsync(WebApplication app) - { - using var scope = app.Services.CreateScope(); - var service = scope.ServiceProvider.GetRequiredService(); - var insertedEducationLevel = new List(); - - if ((await service.GetsAsync()).Count() == 0) - { - // read excels into object - var excelFile = "SeedPerson.xlsx"; - using (var excel = new ExcelPackage(new FileInfo(excelFile))) - { - // 1. Seed EducationLevel - var workSheet = excel.Workbook.Worksheets.FirstOrDefault(x => x.Name.ToLower() == "educationlevel"); - var totalRows = workSheet?.Dimension.Rows; - - int row = 1; - - while (row <= totalRows) - { - var cell1 = workSheet?.Cells[row, 1]?.GetValue(); - if (cell1 == "" || cell1 == null) break; - - var educationLevel = insertedEducationLevel.Where(x => x.Name == (workSheet?.Cells[row, 1]?.GetValue() ?? "")).FirstOrDefault(); - if (educationLevel == null) - { - var inserted = new EducationLevel - { - Id = Guid.NewGuid(), - Name = workSheet?.Cells[row, 1]?.GetValue() ?? "", - IsActive = true, - CreatedFullName = "System Administrator", - CreatedAt = DateTime.Now - }; - insertedEducationLevel.Add(inserted); - - await service.CreateAsync(inserted); - } - row++; - } - } - } - } - - public static async Task SeedProvinceAsync(WebApplication app) - { - using var scope = app.Services.CreateScope(); - var service = scope.ServiceProvider.GetRequiredService(); - var districtService = scope.ServiceProvider.GetRequiredService(); - var subDistrictService = scope.ServiceProvider.GetRequiredService(); - - var serializeOption = new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore }; - - var insertedProvince = new List(); - - if ((await service.GetsAsync()).Count() == 0) - { - // read excels into object - var excelFile = "SeedPerson.xlsx"; - using (var excel = new ExcelPackage(new FileInfo(excelFile))) - { - // 1. Seed Province - var workSheet = excel.Workbook.Worksheets.FirstOrDefault(x => x.Name.ToLower() == "province"); - var totalRows = workSheet?.Dimension.Rows; - - int row = 2; - - while (row <= totalRows) - { - var cell1 = workSheet?.Cells[row, 1]?.GetValue(); - if (cell1 == "" || cell1 == null) break; - - var inserted = new Province - { - Id = Guid.NewGuid(), - Name = workSheet?.Cells[row, 1]?.GetValue() ?? "", - IsActive = true, - CreatedFullName = "System Administrator", - CreatedAt = DateTime.Now, - Districts = new List() - }; - insertedProvince.Add(inserted); - - await service.CreateAsync(inserted); - - row++; - } - - // 2. Seed District - var d_workSheet = excel.Workbook.Worksheets.FirstOrDefault(x => x.Name.ToLower() == "district"); - var d_totalRows = d_workSheet?.Dimension.Rows; - - int d_row = 2; - - while (d_row <= d_totalRows) - { - var cell1 = d_workSheet?.Cells[d_row, 1]?.GetValue(); - if (cell1 == "" || cell1 == null) break; - - var province = insertedProvince.Where(x => x.Name == cell1).FirstOrDefault(); - - var inserted = new District - { - Id = Guid.NewGuid(), - Name = d_workSheet?.Cells[d_row, 2]?.GetValue() ?? "", - IsActive = true, - CreatedFullName = "System Administrator", - CreatedAt = DateTime.Now, - SubDistricts = new List() - }; - - province?.Districts.Add(inserted); - var provinceId = province == null ? Guid.NewGuid() : province.Id; - - var jsonString = JsonConvert.SerializeObject(inserted, serializeOption); - - await districtService.CreateAsync(inserted, provinceId.ToString("D")); - - d_row++; - } - - - // 3. Seed SubDistrict - var s_workSheet = excel.Workbook.Worksheets.FirstOrDefault(x => x.Name.ToLower() == "subdistrict"); - var s_totalRows = s_workSheet?.Dimension.Rows; - - int s_row = 2; - var zipcodes = new List(); - - while (s_row <= s_totalRows) - { - var cell1 = s_workSheet?.Cells[s_row, 1]?.GetValue(); - var cell2 = s_workSheet?.Cells[s_row, 2]?.GetValue(); - if (cell1 == "" || cell1 == null) break; - - var province = insertedProvince.Where(x => x.Name == cell1).FirstOrDefault(); - var district = province?.Districts.Where(x => x.Name == cell2).FirstOrDefault(); - - var inserted = new SubDistrict - { - Id = Guid.NewGuid(), - Name = s_workSheet?.Cells[s_row, 3]?.GetValue() ?? "", - ZipCode = s_workSheet?.Cells[s_row, 4]?.GetValue() ?? "", - IsActive = true, - CreatedFullName = "System Administrator", - CreatedAt = DateTime.Now, - - }; - - if (!zipcodes.Contains(inserted.ZipCode)) - zipcodes.Add(inserted.ZipCode); - - district?.SubDistricts.Add(inserted); - var districtId = district == null ? Guid.NewGuid() : district.Id; - - var jsonString = JsonConvert.SerializeObject(inserted, serializeOption); - - await subDistrictService.CreateAsync(inserted, districtId.ToString("D")); - - s_row++; - } - } - } - } public static async Task SeedPeriodExamAsync(WebApplication app) { // using var scope = app.Services.CreateScope(); diff --git a/Data/MetadataDbContext.cs b/Data/MetadataDbContext.cs new file mode 100644 index 0000000..683d926 --- /dev/null +++ b/Data/MetadataDbContext.cs @@ -0,0 +1,55 @@ +using BMA.EHR.Recurit.Exam.Service.Models; +using BMA.EHR.Recurit.Exam.Service.Models.Documents; +using Microsoft.EntityFrameworkCore; + +namespace BMA.EHR.Recurit.Exam.Service.Data +{ + public class MetadataDbContext : DbContext + { + public MetadataDbContext(DbContextOptions options) + : base(options) + { + } + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + } + + // The following configures EF to create a Sqlite database file in the + // special "local" folder for your platform. + protected override void OnConfiguring(DbContextOptionsBuilder options) + { + if (!options.IsConfigured) + { + var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production"; + var configurationBuilder = new ConfigurationBuilder() + .AddJsonFile("appsettings.json", optional: true, true) + .AddJsonFile($"appsettings.{environment}.json", true, true) + .AddEnvironmentVariables() + .Build(); + + var historyConnection = configurationBuilder.GetConnectionString("HistoryConnection"); + options.UseMySql(historyConnection, ServerVersion.AutoDetect(historyConnection)); + + } + } + + public DbSet Prefixes { get; set; } + + public DbSet Religions { get; set; } + + public DbSet EducationLevels { get; set; } + + public DbSet Relationships { get; set; } + + public DbSet Provinces { get; set; } + + public DbSet Districts { get; set; } + + public DbSet SubDistricts { get; set; } + + public DbSet OrganizationOrganizations { get; set; } + + public DbSet OrganizationShortNames { get; set; } + } +} diff --git a/Data/Migrations/ApplicationDbContextModelSnapshot.cs b/Data/Migrations/ApplicationDbContextModelSnapshot.cs index 1b0cf5c..68fb53b 100644 --- a/Data/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/Data/Migrations/ApplicationDbContextModelSnapshot.cs @@ -168,7 +168,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations b.Property("Address") .HasColumnType("longtext") - .HasComment("ที่อยู่"); + .HasComment("ที่อยู่ปัจจุบัน"); b.Property("BannerImgId") .HasColumnType("char(36)"); @@ -197,7 +197,12 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .HasComment("ข้อมูลเว็บโดยย่อ"); b.Property("DistrictId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id อำเภอ"); + + b.Property("DistrictName") + .HasColumnType("longtext") + .HasComment("อำเภอ"); b.Property("LastUpdateFullName") .IsRequired() @@ -230,14 +235,24 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .HasComment("ชื่อเว็บภาษาไทย"); b.Property("ProvinceId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id จังหวัด"); + + b.Property("ProvinceName") + .HasColumnType("longtext") + .HasComment("จังหวัด"); b.Property("ShortName") .HasColumnType("longtext") .HasComment("ชื่อย่อ"); b.Property("SubDistrictId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id ตำบล"); + + b.Property("SubDistrictName") + .HasColumnType("longtext") + .HasComment("ตำบล"); b.Property("Telephone") .HasMaxLength(20) @@ -253,14 +268,8 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations b.HasIndex("BannerImgId"); - b.HasIndex("DistrictId"); - b.HasIndex("LogoImgId"); - b.HasIndex("ProvinceId"); - - b.HasIndex("SubDistrictId"); - b.ToTable("CMSCandidates"); }); @@ -343,7 +352,12 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .HasComment("วันที่ออกบัตร"); b.Property("CitizenDistrictId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id เขตที่ออกบัตรประชาชน"); + + b.Property("CitizenDistrictName") + .HasColumnType("longtext") + .HasComment("เขตที่ออกบัตรประชาชน"); b.Property("CitizenId") .HasMaxLength(20) @@ -351,7 +365,12 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .HasComment("เลขประจำตัวประชาชน"); b.Property("CitizenProvinceId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id จังหวัดที่ออกบัตรประชาชน"); + + b.Property("CitizenProvinceName") + .HasColumnType("longtext") + .HasComment("จังหวัดที่ออกบัตรประชาชน"); b.Property("CreatedAt") .HasColumnType("datetime(6)") @@ -377,13 +396,28 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .HasComment("ที่อยู่ปัจจุบัน"); b.Property("CurrentDistrictId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id อำเภอที่อยู่ปัจจุบัน"); + + b.Property("CurrentDistrictName") + .HasColumnType("longtext") + .HasComment("อำเภอที่อยู่ปัจจุบัน"); b.Property("CurrentProvinceId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id จังหวัดที่อยู่ปัจจุบัน"); + + b.Property("CurrentProvinceName") + .HasColumnType("longtext") + .HasComment("จังหวัดที่อยู่ปัจจุบัน"); b.Property("CurrentSubDistrictId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id ตำบลที่อยู่ปัจจุบัน"); + + b.Property("CurrentSubDistrictName") + .HasColumnType("longtext") + .HasComment("ตำบลที่อยู่ปัจจุบัน"); b.Property("CurrentZipCode") .HasMaxLength(10) @@ -425,7 +459,12 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .HasComment("อาชีพบิดา"); b.Property("FatherPrefixId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id คำนำหน้าชื่อบิดา"); + + b.Property("FatherPrefixName") + .HasColumnType("longtext") + .HasComment("คำนำหน้าชื่อบิดา"); b.Property("FirstName") .HasMaxLength(100) @@ -487,7 +526,12 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .HasComment("อาชีพคู่สมรส"); b.Property("MarryPrefixId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id คำนำหน้าชื่อคู่สมรส"); + + b.Property("MarryPrefixName") + .HasColumnType("longtext") + .HasComment("คำนำหน้าชื่อคู่สมรส"); b.Property("MobilePhone") .HasMaxLength(20) @@ -515,7 +559,12 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .HasComment("อาชีพมารดา"); b.Property("MotherPrefixId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id คำนำหน้าชื่อมารดา"); + + b.Property("MotherPrefixName") + .HasColumnType("longtext") + .HasComment("คำนำหน้าชื่อมารดา"); b.Property("Nationality") .HasMaxLength(40) @@ -563,7 +612,12 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .HasColumnType("char(36)"); b.Property("PrefixId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id คำนำหน้าชื่อ"); + + b.Property("PrefixName") + .HasColumnType("longtext") + .HasComment("คำนำหน้าชื่อ"); b.Property("ProfileImgId") .HasColumnType("char(36)"); @@ -573,17 +627,32 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .HasComment("ที่อยู่ตามทะเบียนบ้าน"); b.Property("RegistDistrictId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id อำเภอที่อยู่ตามทะเบียนบ้าน"); + + b.Property("RegistDistrictName") + .HasColumnType("longtext") + .HasComment("อำเภอที่อยู่ตามทะเบียนบ้าน"); b.Property("RegistProvinceId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id จังหวัดที่อยู่ตามทะเบียนบ้าน"); + + b.Property("RegistProvinceName") + .HasColumnType("longtext") + .HasComment("จังหวัดที่อยู่ตามทะเบียนบ้าน"); b.Property("RegistSame") .HasColumnType("tinyint(1)") .HasComment("ที่อยู่ปัจจุบันเหมือนที่อยู่ตามทะเบียนบ้าน"); b.Property("RegistSubDistrictId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id ตำบลที่อยู่ตามทะเบียนบ้าน"); + + b.Property("RegistSubDistrictName") + .HasColumnType("longtext") + .HasComment("ตำบลที่อยู่ตามทะเบียนบ้าน"); b.Property("RegistZipCode") .HasMaxLength(10) @@ -595,7 +664,12 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .HasComment("เหตุผลการไม่อนุมัติ"); b.Property("RelationshipId") - .HasColumnType("char(36)"); + .HasColumnType("char(36)") + .HasComment("Id ศาสนา"); + + b.Property("RelationshipName") + .HasColumnType("longtext") + .HasComment("ศาสนา"); b.Property("SeatNumber") .HasColumnType("longtext") @@ -620,40 +694,14 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations b.HasKey("Id"); - b.HasIndex("CitizenDistrictId"); - - b.HasIndex("CitizenProvinceId"); - - b.HasIndex("CurrentDistrictId"); - - b.HasIndex("CurrentProvinceId"); - - b.HasIndex("CurrentSubDistrictId"); - - b.HasIndex("FatherPrefixId"); - - b.HasIndex("MarryPrefixId"); - - b.HasIndex("MotherPrefixId"); - b.HasIndex("PaymentImgId"); b.HasIndex("PeriodExamId"); b.HasIndex("PositionExamId"); - b.HasIndex("PrefixId"); - b.HasIndex("ProfileImgId"); - b.HasIndex("RegistDistrictId"); - - b.HasIndex("RegistProvinceId"); - - b.HasIndex("RegistSubDistrictId"); - - b.HasIndex("RelationshipId"); - b.ToTable("Candidates"); }); @@ -810,75 +858,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations b.ToTable("Careers"); }); - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.District", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)") - .HasColumnOrder(0) - .HasComment("PrimaryKey") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("CreatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(100) - .HasComment("สร้างข้อมูลเมื่อ"); - - b.Property("CreatedFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(104) - .HasComment("ชื่อ User ที่สร้างข้อมูล"); - - b.Property("CreatedUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(101) - .HasComment("User Id ที่สร้างข้อมูล"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)") - .HasColumnOrder(2) - .HasComment("สถานะการใช้งาน"); - - b.Property("LastUpdateFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(105) - .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdateUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(103) - .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(102) - .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("varchar(150)") - .HasColumnOrder(1) - .HasComment("เขต/อำเภอ"); - - b.Property("ProvinceId") - .HasColumnType("char(36)"); - - b.HasKey("Id"); - - b.HasIndex("ProvinceId"); - - b.ToTable("Districts"); - }); - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", b => { b.Property("Id") @@ -954,8 +933,13 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .HasColumnOrder(1) .HasComment("ระยะเวลาเริ่ม"); - b.Property("EducationLevelId") - .HasColumnType("char(36)"); + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idวุฒิที่ได้รับ"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("วุฒิที่ได้รับ"); b.Property("LastUpdateFullName") .IsRequired() @@ -998,75 +982,9 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations b.HasIndex("CandidateId"); - b.HasIndex("EducationLevelId"); - b.ToTable("Educations"); }); - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.EducationLevel", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)") - .HasColumnOrder(0) - .HasComment("PrimaryKey") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("CreatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(100) - .HasComment("สร้างข้อมูลเมื่อ"); - - b.Property("CreatedFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(104) - .HasComment("ชื่อ User ที่สร้างข้อมูล"); - - b.Property("CreatedUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(101) - .HasComment("User Id ที่สร้างข้อมูล"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)") - .HasColumnOrder(2) - .HasComment("สถานะการใช้งาน"); - - b.Property("LastUpdateFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(105) - .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdateUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(103) - .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(102) - .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("varchar(100)") - .HasColumnOrder(1) - .HasComment("ระดับการศึกษา"); - - b.HasKey("Id"); - - b.ToTable("EducationLevels"); - }); - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.PeriodExam", b => { b.Property("Id") @@ -1414,338 +1332,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations b.ToTable("PositionExams"); }); - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Prefix", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)") - .HasColumnOrder(0) - .HasComment("PrimaryKey") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("CreatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(100) - .HasComment("สร้างข้อมูลเมื่อ"); - - b.Property("CreatedFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(104) - .HasComment("ชื่อ User ที่สร้างข้อมูล"); - - b.Property("CreatedUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(101) - .HasComment("User Id ที่สร้างข้อมูล"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)") - .HasColumnOrder(3) - .HasComment("สถานะการใช้งาน"); - - b.Property("LastUpdateFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(105) - .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdateUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(103) - .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(102) - .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("varchar(50)") - .HasColumnOrder(2) - .HasComment("รายละเอียดคำนำหน้า"); - - b.HasKey("Id"); - - b.ToTable("Prefixes"); - }); - - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Province", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)") - .HasColumnOrder(0) - .HasComment("PrimaryKey") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("CreatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(100) - .HasComment("สร้างข้อมูลเมื่อ"); - - b.Property("CreatedFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(104) - .HasComment("ชื่อ User ที่สร้างข้อมูล"); - - b.Property("CreatedUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(101) - .HasComment("User Id ที่สร้างข้อมูล"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)") - .HasColumnOrder(2) - .HasComment("สถานะการใช้งาน"); - - b.Property("LastUpdateFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(105) - .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdateUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(103) - .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(102) - .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("varchar(150)") - .HasColumnOrder(1) - .HasComment("จังหวัด"); - - b.HasKey("Id"); - - b.ToTable("Provinces"); - }); - - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Relationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)") - .HasColumnOrder(0) - .HasComment("PrimaryKey") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("CreatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(100) - .HasComment("สร้างข้อมูลเมื่อ"); - - b.Property("CreatedFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(104) - .HasComment("ชื่อ User ที่สร้างข้อมูล"); - - b.Property("CreatedUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(101) - .HasComment("User Id ที่สร้างข้อมูล"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)") - .HasColumnOrder(2) - .HasComment("สถานะการใช้งาน"); - - b.Property("LastUpdateFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(105) - .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdateUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(103) - .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(102) - .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("varchar(50)") - .HasColumnOrder(1) - .HasComment("ชื่อความสัมพันธ์"); - - b.HasKey("Id"); - - b.ToTable("Relationships"); - }); - - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Religion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)") - .HasColumnOrder(0) - .HasComment("PrimaryKey") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("CreatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(100) - .HasComment("สร้างข้อมูลเมื่อ"); - - b.Property("CreatedFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(104) - .HasComment("ชื่อ User ที่สร้างข้อมูล"); - - b.Property("CreatedUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(101) - .HasComment("User Id ที่สร้างข้อมูล"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)") - .HasColumnOrder(2) - .HasComment("สถานะการใช้งาน"); - - b.Property("LastUpdateFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(105) - .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdateUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(103) - .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(102) - .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("varchar(100)") - .HasColumnOrder(1) - .HasComment("ศาสนา"); - - b.HasKey("Id"); - - b.ToTable("Religions"); - }); - - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.SubDistrict", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)") - .HasColumnOrder(0) - .HasComment("PrimaryKey") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("CreatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(100) - .HasComment("สร้างข้อมูลเมื่อ"); - - b.Property("CreatedFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(104) - .HasComment("ชื่อ User ที่สร้างข้อมูล"); - - b.Property("CreatedUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(101) - .HasComment("User Id ที่สร้างข้อมูล"); - - b.Property("DistrictId") - .HasColumnType("char(36)"); - - b.Property("IsActive") - .HasColumnType("tinyint(1)") - .HasColumnOrder(3) - .HasComment("สถานะการใช้งาน"); - - b.Property("LastUpdateFullName") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("varchar(200)") - .HasColumnOrder(105) - .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdateUserId") - .IsRequired() - .HasMaxLength(40) - .HasColumnType("varchar(40)") - .HasColumnOrder(103) - .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); - - b.Property("LastUpdatedAt") - .HasColumnType("datetime(6)") - .HasColumnOrder(102) - .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("varchar(150)") - .HasColumnOrder(1) - .HasComment("เขต/อำเภอ"); - - b.Property("ZipCode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("varchar(10)") - .HasColumnOrder(2) - .HasComment("รหัสไปรษณีย์"); - - b.HasKey("Id"); - - b.HasIndex("DistrictId"); - - b.ToTable("SubDistricts"); - }); - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.BankExam", b => { b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.PeriodExam", "PeriodExam") @@ -1774,31 +1360,13 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .WithMany() .HasForeignKey("BannerImgId"); - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.District", "District") - .WithMany() - .HasForeignKey("DistrictId"); - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", "LogoImg") .WithMany() .HasForeignKey("LogoImgId"); - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Province", "Province") - .WithMany() - .HasForeignKey("ProvinceId"); - - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.SubDistrict", "SubDistrict") - .WithMany() - .HasForeignKey("SubDistrictId"); - b.Navigation("BannerImg"); - b.Navigation("District"); - b.Navigation("LogoImg"); - - b.Navigation("Province"); - - b.Navigation("SubDistrict"); }); modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSGovernment", b => @@ -1814,38 +1382,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Candidate", b => { - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.District", "CitizenDistrict") - .WithMany() - .HasForeignKey("CitizenDistrictId"); - - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Province", "CitizenProvince") - .WithMany() - .HasForeignKey("CitizenProvinceId"); - - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.District", "CurrentDistrict") - .WithMany() - .HasForeignKey("CurrentDistrictId"); - - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Province", "CurrentProvince") - .WithMany() - .HasForeignKey("CurrentProvinceId"); - - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.SubDistrict", "CurrentSubDistrict") - .WithMany() - .HasForeignKey("CurrentSubDistrictId"); - - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Prefix", "FatherPrefix") - .WithMany() - .HasForeignKey("FatherPrefixId"); - - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Prefix", "MarryPrefix") - .WithMany() - .HasForeignKey("MarryPrefixId"); - - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Prefix", "MotherPrefix") - .WithMany() - .HasForeignKey("MotherPrefixId"); - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", "PaymentImg") .WithMany() .HasForeignKey("PaymentImgId"); @@ -1860,63 +1396,17 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .WithMany() .HasForeignKey("PositionExamId"); - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Prefix", "Prefix") - .WithMany() - .HasForeignKey("PrefixId"); - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", "ProfileImg") .WithMany() .HasForeignKey("ProfileImgId"); - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.District", "RegistDistrict") - .WithMany() - .HasForeignKey("RegistDistrictId"); - - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Province", "RegistProvince") - .WithMany() - .HasForeignKey("RegistProvinceId"); - - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.SubDistrict", "RegistSubDistrict") - .WithMany() - .HasForeignKey("RegistSubDistrictId"); - - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Relationship", "Relationship") - .WithMany() - .HasForeignKey("RelationshipId"); - - b.Navigation("CitizenDistrict"); - - b.Navigation("CitizenProvince"); - - b.Navigation("CurrentDistrict"); - - b.Navigation("CurrentProvince"); - - b.Navigation("CurrentSubDistrict"); - - b.Navigation("FatherPrefix"); - - b.Navigation("MarryPrefix"); - - b.Navigation("MotherPrefix"); - b.Navigation("PaymentImg"); b.Navigation("PeriodExam"); b.Navigation("PositionExam"); - b.Navigation("Prefix"); - b.Navigation("ProfileImg"); - - b.Navigation("RegistDistrict"); - - b.Navigation("RegistProvince"); - - b.Navigation("RegistSubDistrict"); - - b.Navigation("Relationship"); }); modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CandidateDocument", b => @@ -1949,15 +1439,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations b.Navigation("Candidate"); }); - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.District", b => - { - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Province", "Province") - .WithMany("Districts") - .HasForeignKey("ProvinceId"); - - b.Navigation("Province"); - }); - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Education", b => { b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Candidate", "Candidate") @@ -1966,15 +1447,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.EducationLevel", "EducationLevel") - .WithMany() - .HasForeignKey("EducationLevelId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - b.Navigation("Candidate"); - - b.Navigation("EducationLevel"); }); modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.PeriodExamDocument", b => @@ -2026,15 +1499,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations b.Navigation("PeriodExam"); }); - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.SubDistrict", b => - { - b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.District", "District") - .WithMany("SubDistricts") - .HasForeignKey("DistrictId"); - - b.Navigation("District"); - }); - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSCandidate", b => { b.Navigation("CMSAgencys"); @@ -2042,11 +1506,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations b.Navigation("CMSGovernments"); }); - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.District", b => - { - b.Navigation("SubDistricts"); - }); - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.PeriodExam", b => { b.Navigation("BankExam"); @@ -2059,11 +1518,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Data.Migrations b.Navigation("PositionExam"); }); - - modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Province", b => - { - b.Navigation("Districts"); - }); #pragma warning restore 612, 618 } } diff --git a/Migrations/20230410055737_update table metadata use key main.Designer.cs b/Migrations/20230410055737_update table metadata use key main.Designer.cs new file mode 100644 index 0000000..2607b85 --- /dev/null +++ b/Migrations/20230410055737_update table metadata use key main.Designer.cs @@ -0,0 +1,1527 @@ +// +using System; +using BMA.EHR.Recurit.Exam.Service.Data; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace BMA.EHR.Recurit.Exam.Service.Migrations +{ + [DbContext(typeof(ApplicationDbContext))] + [Migration("20230410055737_update table metadata use key main")] + partial class updatetablemetadatausekeymain + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.4") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.BankExam", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AccountName") + .HasColumnType("longtext") + .HasComment("ชื่อบัญชี"); + + b.Property("AccountNumber") + .HasColumnType("longtext") + .HasComment("เลขบัญชี"); + + b.Property("BankName") + .HasColumnType("longtext") + .HasComment("ธนาคาร"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("สร้างข้อมูลเมื่อ"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("ชื่อ User ที่สร้างข้อมูล"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id ที่สร้างข้อมูล"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); + + b.Property("PeriodExamId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("PeriodExamId"); + + b.ToTable("BankExams"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSAgency", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CMSCandidateId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("สร้างข้อมูลเมื่อ"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("ชื่อ User ที่สร้างข้อมูล"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id ที่สร้างข้อมูล"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); + + b.Property("Link") + .HasColumnType("longtext") + .HasComment("ลิงค์"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("ชื่อลิงค์"); + + b.HasKey("Id"); + + b.HasIndex("CMSCandidateId"); + + b.ToTable("CMSAgencys"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSCandidate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("About") + .HasColumnType("longtext") + .HasComment("ข้อมูลเกี่ยวกับเรา"); + + b.Property("Address") + .HasColumnType("longtext") + .HasComment("ที่อยู่ปัจจุบัน"); + + b.Property("BannerImgId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("สร้างข้อมูลเมื่อ"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("ชื่อ User ที่สร้างข้อมูล"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id ที่สร้างข้อมูล"); + + b.Property("Description") + .HasColumnType("longtext") + .HasComment("ข้อมูลเว็บโดยย่อ"); + + b.Property("DistrictId") + .HasColumnType("char(36)") + .HasComment("Id อำเภอ"); + + b.Property("DistrictName") + .HasColumnType("longtext") + .HasComment("อำเภอ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); + + b.Property("LogoImgId") + .HasColumnType("char(36)"); + + b.Property("NameEn") + .HasColumnType("longtext") + .HasComment("ชื่อเว็บภาษาอังกฤษ"); + + b.Property("NameTh") + .HasColumnType("longtext") + .HasComment("ชื่อเว็บภาษาไทย"); + + b.Property("ProvinceId") + .HasColumnType("char(36)") + .HasComment("Id จังหวัด"); + + b.Property("ProvinceName") + .HasColumnType("longtext") + .HasComment("จังหวัด"); + + b.Property("ShortName") + .HasColumnType("longtext") + .HasComment("ชื่อย่อ"); + + b.Property("SubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id ตำบล"); + + b.Property("SubDistrictName") + .HasColumnType("longtext") + .HasComment("ตำบล"); + + b.Property("Telephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("โทรศัพท์"); + + b.Property("ZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("รหัสไปรษณีย์"); + + b.HasKey("Id"); + + b.HasIndex("BannerImgId"); + + b.HasIndex("LogoImgId"); + + b.ToTable("CMSCandidates"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSGovernment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CMSCandidateId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("สร้างข้อมูลเมื่อ"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("ชื่อ User ที่สร้างข้อมูล"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id ที่สร้างข้อมูล"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); + + b.Property("Link") + .HasColumnType("longtext") + .HasComment("ลิงค์"); + + b.Property("Name") + .HasColumnType("longtext") + .HasComment("ชื่อลิงค์"); + + b.HasKey("Id"); + + b.HasIndex("CMSCandidateId"); + + b.ToTable("CMSGovernments"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Candidate", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CitizenDate") + .HasColumnType("datetime(6)") + .HasComment("วันที่ออกบัตร"); + + b.Property("CitizenDistrictId") + .HasColumnType("char(36)") + .HasComment("Id เขตที่ออกบัตรประชาชน"); + + b.Property("CitizenDistrictName") + .HasColumnType("longtext") + .HasComment("เขตที่ออกบัตรประชาชน"); + + b.Property("CitizenId") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("เลขประจำตัวประชาชน"); + + b.Property("CitizenProvinceId") + .HasColumnType("char(36)") + .HasComment("Id จังหวัดที่ออกบัตรประชาชน"); + + b.Property("CitizenProvinceName") + .HasColumnType("longtext") + .HasComment("จังหวัดที่ออกบัตรประชาชน"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("สร้างข้อมูลเมื่อ"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("ชื่อ User ที่สร้างข้อมูล"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id ที่สร้างข้อมูล"); + + b.Property("CurrentAddress") + .HasColumnType("longtext") + .HasComment("ที่อยู่ปัจจุบัน"); + + b.Property("CurrentDistrictId") + .HasColumnType("char(36)") + .HasComment("Id อำเภอที่อยู่ปัจจุบัน"); + + b.Property("CurrentDistrictName") + .HasColumnType("longtext") + .HasComment("อำเภอที่อยู่ปัจจุบัน"); + + b.Property("CurrentProvinceId") + .HasColumnType("char(36)") + .HasComment("Id จังหวัดที่อยู่ปัจจุบัน"); + + b.Property("CurrentProvinceName") + .HasColumnType("longtext") + .HasComment("จังหวัดที่อยู่ปัจจุบัน"); + + b.Property("CurrentSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id ตำบลที่อยู่ปัจจุบัน"); + + b.Property("CurrentSubDistrictName") + .HasColumnType("longtext") + .HasComment("ตำบลที่อยู่ปัจจุบัน"); + + b.Property("CurrentZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("รหัสไปรษณีย์ที่อยู่ปัจจุบัน"); + + b.Property("DateOfBirth") + .HasMaxLength(40) + .HasColumnType("datetime(6)") + .HasComment("วันเกิด"); + + b.Property("Email") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("อีเมล"); + + b.Property("ExamIdenNumber") + .HasColumnType("longtext") + .HasComment("เลขประจำตัวสอบ"); + + b.Property("FatherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("ชื่อจริงบิดา"); + + b.Property("FatherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("นามสกุลบิดา"); + + b.Property("FatherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("สัญชาติบิดา"); + + b.Property("FatherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("อาชีพบิดา"); + + b.Property("FatherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id คำนำหน้าชื่อบิดา"); + + b.Property("FatherPrefixName") + .HasColumnType("longtext") + .HasComment("คำนำหน้าชื่อบิดา"); + + b.Property("FirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(1) + .HasComment("ชื่อจริง"); + + b.Property("Knowledge") + .HasColumnType("longtext") + .HasComment("ความสามารถพิเศษ"); + + b.Property("LastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasColumnOrder(2) + .HasComment("นามสกุล"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); + + b.Property("Marry") + .HasColumnType("tinyint(1)") + .HasComment("คู่สมรส"); + + b.Property("MarryFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("ชื่อจริงคู่สมรส"); + + b.Property("MarryLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("นามสกุลคู่สมรส"); + + b.Property("MarryNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("สัญชาติคู่สมรส"); + + b.Property("MarryOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("อาชีพคู่สมรส"); + + b.Property("MarryPrefixId") + .HasColumnType("char(36)") + .HasComment("Id คำนำหน้าชื่อคู่สมรส"); + + b.Property("MarryPrefixName") + .HasColumnType("longtext") + .HasComment("คำนำหน้าชื่อคู่สมรส"); + + b.Property("MobilePhone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("โทรศัพท์มือถือ"); + + b.Property("MotherFirstName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("ชื่อจริงมารดา"); + + b.Property("MotherLastName") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("นามสกุลมารดา"); + + b.Property("MotherNationality") + .HasMaxLength(100) + .HasColumnType("varchar(100)") + .HasComment("สัญชาติมารดา"); + + b.Property("MotherOccupation") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("อาชีพมารดา"); + + b.Property("MotherPrefixId") + .HasColumnType("char(36)") + .HasComment("Id คำนำหน้าชื่อมารดา"); + + b.Property("MotherPrefixName") + .HasColumnType("longtext") + .HasComment("คำนำหน้าชื่อมารดา"); + + b.Property("Nationality") + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(3) + .HasComment("สัญชาติ"); + + b.Property("OccupationCompany") + .HasColumnType("longtext") + .HasComment("สำนัก/บริษัท บริษัท"); + + b.Property("OccupationDepartment") + .HasColumnType("longtext") + .HasComment("กอง/ฝ่าย บริษัท"); + + b.Property("OccupationEmail") + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasComment("อีเมล บริษัท"); + + b.Property("OccupationPosition") + .HasColumnType("longtext") + .HasComment("ตำแหน่งอาชีพ"); + + b.Property("OccupationTelephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("โทรศัพท์ บริษัท"); + + b.Property("OccupationType") + .HasColumnType("longtext") + .HasComment("ประเภทอาชีพที่ทำงานมาก่อน"); + + b.Property("PaymentImgId") + .HasColumnType("char(36)"); + + b.Property("PeriodExamId") + .HasColumnType("char(36)"); + + b.Property("Point") + .HasColumnType("longtext") + .HasComment("คะแนน"); + + b.Property("PositionExamId") + .HasColumnType("char(36)"); + + b.Property("PrefixId") + .HasColumnType("char(36)") + .HasComment("Id คำนำหน้าชื่อ"); + + b.Property("PrefixName") + .HasColumnType("longtext") + .HasComment("คำนำหน้าชื่อ"); + + b.Property("ProfileImgId") + .HasColumnType("char(36)"); + + b.Property("RegistAddress") + .HasColumnType("longtext") + .HasComment("ที่อยู่ตามทะเบียนบ้าน"); + + b.Property("RegistDistrictId") + .HasColumnType("char(36)") + .HasComment("Id อำเภอที่อยู่ตามทะเบียนบ้าน"); + + b.Property("RegistDistrictName") + .HasColumnType("longtext") + .HasComment("อำเภอที่อยู่ตามทะเบียนบ้าน"); + + b.Property("RegistProvinceId") + .HasColumnType("char(36)") + .HasComment("Id จังหวัดที่อยู่ตามทะเบียนบ้าน"); + + b.Property("RegistProvinceName") + .HasColumnType("longtext") + .HasComment("จังหวัดที่อยู่ตามทะเบียนบ้าน"); + + b.Property("RegistSame") + .HasColumnType("tinyint(1)") + .HasComment("ที่อยู่ปัจจุบันเหมือนที่อยู่ตามทะเบียนบ้าน"); + + b.Property("RegistSubDistrictId") + .HasColumnType("char(36)") + .HasComment("Id ตำบลที่อยู่ตามทะเบียนบ้าน"); + + b.Property("RegistSubDistrictName") + .HasColumnType("longtext") + .HasComment("ตำบลที่อยู่ตามทะเบียนบ้าน"); + + b.Property("RegistZipCode") + .HasMaxLength(10) + .HasColumnType("varchar(10)") + .HasComment("รหัสไปรษณีย์ที่อยู่ตามทะเบียนบ้าน"); + + b.Property("RejectDetail") + .HasColumnType("longtext") + .HasComment("เหตุผลการไม่อนุมัติ"); + + b.Property("RelationshipId") + .HasColumnType("char(36)") + .HasComment("Id ศาสนา"); + + b.Property("RelationshipName") + .HasColumnType("longtext") + .HasComment("ศาสนา"); + + b.Property("SeatNumber") + .HasColumnType("longtext") + .HasComment("เลขที่นั่งสอบ"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("สถานะผู้สมัคร"); + + b.Property("Telephone") + .HasMaxLength(20) + .HasColumnType("varchar(20)") + .HasComment("โทรศัพท์"); + + b.Property("UserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasComment("User Id ผู้สมัคร"); + + b.HasKey("Id"); + + b.HasIndex("PaymentImgId"); + + b.HasIndex("PeriodExamId"); + + b.HasIndex("PositionExamId"); + + b.HasIndex("ProfileImgId"); + + b.ToTable("Candidates"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CandidateDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CandidateId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("สร้างข้อมูลเมื่อ"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("ชื่อ User ที่สร้างข้อมูล"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id ที่สร้างข้อมูล"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); + + b.HasKey("Id"); + + b.HasIndex("CandidateId"); + + b.HasIndex("DocumentId"); + + b.ToTable("CandidateDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Career", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CandidateId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("สร้างข้อมูลเมื่อ"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("ชื่อ User ที่สร้างข้อมูล"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id ที่สร้างข้อมูล"); + + b.Property("DurationEnd") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("ระยะเวลาสิ้นสุด"); + + b.Property("DurationStart") + .HasColumnType("datetime(6)") + .HasColumnOrder(1) + .HasComment("ระยะเวลาเริ่ม"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("สถานที่ทำงาน/ฝึกงาน"); + + b.Property("Position") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("ตำแหน่ง/ลักษณะงาน"); + + b.Property("Reason") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(6) + .HasComment("เหตุผลที่ออก"); + + b.Property("Salary") + .HasMaxLength(20) + .HasColumnType("int") + .HasColumnOrder(5) + .HasComment("เงินเดือนสุดท้ายก่อนออก"); + + b.HasKey("Id"); + + b.HasIndex("CandidateId"); + + b.ToTable("Careers"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreatedDate") + .HasColumnType("datetime(6)"); + + b.Property("Detail") + .IsRequired() + .HasColumnType("text"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255)"); + + b.Property("FileSize") + .HasColumnType("int"); + + b.Property("FileType") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128)"); + + b.Property("ObjectRefId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.ToTable("Documents"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Education", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CandidateId") + .HasColumnType("char(36)"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("สร้างข้อมูลเมื่อ"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("ชื่อ User ที่สร้างข้อมูล"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id ที่สร้างข้อมูล"); + + b.Property("DurationEnd") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("ระยะเวลาสิ้นสุด"); + + b.Property("DurationStart") + .HasColumnType("datetime(6)") + .HasColumnOrder(1) + .HasComment("ระยะเวลาเริ่ม"); + + b.Property("EducationLevelId") + .HasColumnType("char(36)") + .HasComment("Idวุฒิที่ได้รับ"); + + b.Property("EducationLevelName") + .HasColumnType("longtext") + .HasComment("วุฒิที่ได้รับ"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); + + b.Property("Major") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(4) + .HasComment("สาขาวิชา/วิชาเอก"); + + b.Property("Name") + .IsRequired() + .HasColumnType("longtext") + .HasColumnOrder(3) + .HasComment("ชื่อสถานศึกษา"); + + b.Property("Scores") + .HasMaxLength(10) + .HasColumnType("float") + .HasColumnOrder(6) + .HasComment("คะแนนเฉลี่ยตลอดหลักสูตร"); + + b.HasKey("Id"); + + b.HasIndex("CandidateId"); + + b.ToTable("Educations"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.PeriodExam", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("AnnouncementEndDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(6) + .HasComment("วันสิ้นสุดประกาศ"); + + b.Property("AnnouncementStartDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(5) + .HasComment("วันเริ่มประกาศ"); + + b.Property("CheckDisability") + .HasColumnType("tinyint(1)") + .HasComment("คนพิการ"); + + b.Property("CheckDocument") + .HasColumnType("tinyint(1)") + .HasComment("ตรวจสอบเอกสารหลังประกาศผลสอบ"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("สร้างข้อมูลเมื่อ"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("ชื่อ User ที่สร้างข้อมูล"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id ที่สร้างข้อมูล"); + + b.Property("Detail") + .HasColumnType("longtext") + .HasComment("รายละเอียดสมัครสอบ"); + + b.Property("ExamDate") + .HasColumnType("datetime(6)") + .HasComment("วันที่สอบ"); + + b.Property("Fee") + .HasColumnType("float") + .HasComment("ค่าธรรมเนียม"); + + b.Property("IsActive") + .HasColumnType("tinyint(1)") + .HasComment("สถานะการใช้งาน"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("varchar(150)") + .HasColumnOrder(7) + .HasComment("ชื่อการสอบ"); + + b.Property("Note") + .HasColumnType("longtext") + .HasComment("หมายเหตุ"); + + b.Property("OrganizationCodeId") + .HasColumnType("char(36)") + .HasComment("Id รหัสส่วนราชการ"); + + b.Property("OrganizationCodeName") + .HasColumnType("longtext") + .HasComment("ชื่อรหัสส่วนราชการ"); + + b.Property("OrganizationId") + .HasColumnType("char(36)") + .HasComment("Id หน่วยงาน"); + + b.Property("OrganizationName") + .HasColumnType("longtext") + .HasComment("ชื่อหน่วยงาน"); + + b.Property("PaymentEndDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(4) + .HasComment("วันสิ้นสุดชำระเงิน"); + + b.Property("PaymentKrungThai") + .HasColumnType("longtext") + .HasComment("ชำระเงินผ่านกรุงไทย"); + + b.Property("PaymentStartDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(3) + .HasComment("วันเริ่มชำระเงิน"); + + b.Property("RegisterEndDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(2) + .HasComment("วันสิ้นสุดสมัครสอบ"); + + b.Property("RegisterStartDate") + .HasColumnType("datetime(6)") + .HasColumnOrder(1) + .HasComment("วันเริ่มสมัครสอบ"); + + b.Property("Round") + .HasColumnType("int") + .HasColumnOrder(8) + .HasComment("รอบการสอบ"); + + b.Property("SetSeat") + .HasColumnType("tinyint(1)") + .HasComment("เช็คอัพคะแนน"); + + b.Property("Year") + .HasColumnType("int") + .HasComment("ปีงบประมาณ"); + + b.HasKey("Id"); + + b.ToTable("PeriodExams"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.PeriodExamDocument", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("สร้างข้อมูลเมื่อ"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("ชื่อ User ที่สร้างข้อมูล"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id ที่สร้างข้อมูล"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); + + b.Property("PeriodExamId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodExamId"); + + b.ToTable("PeriodExamDocuments"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.PeriodExamImage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("สร้างข้อมูลเมื่อ"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("ชื่อ User ที่สร้างข้อมูล"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id ที่สร้างข้อมูล"); + + b.Property("DocumentId") + .HasColumnType("char(36)"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); + + b.Property("PeriodExamId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("DocumentId"); + + b.HasIndex("PeriodExamId"); + + b.ToTable("PeriodExamImages"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.PositionExam", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)") + .HasColumnOrder(0) + .HasComment("PrimaryKey") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("CreatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(100) + .HasComment("สร้างข้อมูลเมื่อ"); + + b.Property("CreatedFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(104) + .HasComment("ชื่อ User ที่สร้างข้อมูล"); + + b.Property("CreatedUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(101) + .HasComment("User Id ที่สร้างข้อมูล"); + + b.Property("LastUpdateFullName") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("varchar(200)") + .HasColumnOrder(105) + .HasComment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdateUserId") + .IsRequired() + .HasMaxLength(40) + .HasColumnType("varchar(40)") + .HasColumnOrder(103) + .HasComment("User Id ที่แก้ไขข้อมูลล่าสุด"); + + b.Property("LastUpdatedAt") + .HasColumnType("datetime(6)") + .HasColumnOrder(102) + .HasComment("แก้ไขข้อมูลล่าสุดเมื่อ"); + + b.Property("PeriodExamId") + .HasColumnType("char(36)"); + + b.Property("PositionId") + .HasColumnType("char(36)") + .HasComment("Id ตำแหน่ง"); + + b.Property("PositionName") + .HasColumnType("longtext") + .HasComment("ชื่อตำแหน่ง"); + + b.Property("TypeId") + .HasColumnType("longtext") + .HasComment("Id ประเภทแบบฟอร์ม"); + + b.Property("TypeName") + .HasColumnType("longtext") + .HasComment("ชื่อประเภทแบบฟอร์ม"); + + b.HasKey("Id"); + + b.HasIndex("PeriodExamId"); + + b.ToTable("PositionExams"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.BankExam", b => + { + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.PeriodExam", "PeriodExam") + .WithMany("BankExam") + .HasForeignKey("PeriodExamId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PeriodExam"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSAgency", b => + { + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.CMSCandidate", "CMSCandidate") + .WithMany("CMSAgencys") + .HasForeignKey("CMSCandidateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CMSCandidate"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSCandidate", b => + { + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", "BannerImg") + .WithMany() + .HasForeignKey("BannerImgId"); + + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", "LogoImg") + .WithMany() + .HasForeignKey("LogoImgId"); + + b.Navigation("BannerImg"); + + b.Navigation("LogoImg"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSGovernment", b => + { + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.CMSCandidate", "CMSCandidate") + .WithMany("CMSGovernments") + .HasForeignKey("CMSCandidateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("CMSCandidate"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Candidate", b => + { + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", "PaymentImg") + .WithMany() + .HasForeignKey("PaymentImgId"); + + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.PeriodExam", "PeriodExam") + .WithMany("Candidate") + .HasForeignKey("PeriodExamId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.PositionExam", "PositionExam") + .WithMany() + .HasForeignKey("PositionExamId"); + + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", "ProfileImg") + .WithMany() + .HasForeignKey("ProfileImgId"); + + b.Navigation("PaymentImg"); + + b.Navigation("PeriodExam"); + + b.Navigation("PositionExam"); + + b.Navigation("ProfileImg"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CandidateDocument", b => + { + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Candidate", "Candidate") + .WithMany() + .HasForeignKey("CandidateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Candidate"); + + b.Navigation("Document"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Career", b => + { + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Candidate", "Candidate") + .WithMany() + .HasForeignKey("CandidateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Candidate"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.Education", b => + { + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Candidate", "Candidate") + .WithMany() + .HasForeignKey("CandidateId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Candidate"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.PeriodExamDocument", b => + { + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.PeriodExam", "PeriodExam") + .WithMany("PeriodExamDocuments") + .HasForeignKey("PeriodExamId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PeriodExam"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.PeriodExamImage", b => + { + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.Documents.Document", "Document") + .WithMany() + .HasForeignKey("DocumentId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.PeriodExam", "PeriodExam") + .WithMany("PeriodExamImages") + .HasForeignKey("PeriodExamId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Document"); + + b.Navigation("PeriodExam"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.PositionExam", b => + { + b.HasOne("BMA.EHR.Recurit.Exam.Service.Models.PeriodExam", "PeriodExam") + .WithMany("PositionExam") + .HasForeignKey("PeriodExamId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("PeriodExam"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.CMSCandidate", b => + { + b.Navigation("CMSAgencys"); + + b.Navigation("CMSGovernments"); + }); + + modelBuilder.Entity("BMA.EHR.Recurit.Exam.Service.Models.PeriodExam", b => + { + b.Navigation("BankExam"); + + b.Navigation("Candidate"); + + b.Navigation("PeriodExamDocuments"); + + b.Navigation("PeriodExamImages"); + + b.Navigation("PositionExam"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/Migrations/20230410055737_update table metadata use key main.cs b/Migrations/20230410055737_update table metadata use key main.cs new file mode 100644 index 0000000..b8985d8 --- /dev/null +++ b/Migrations/20230410055737_update table metadata use key main.cs @@ -0,0 +1,1218 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BMA.EHR.Recurit.Exam.Service.Migrations +{ + /// + public partial class updatetablemetadatausekeymain : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropForeignKey( + name: "FK_Candidates_Districts_CitizenDistrictId", + table: "Candidates"); + + migrationBuilder.DropForeignKey( + name: "FK_Candidates_Districts_CurrentDistrictId", + table: "Candidates"); + + migrationBuilder.DropForeignKey( + name: "FK_Candidates_Districts_RegistDistrictId", + table: "Candidates"); + + migrationBuilder.DropForeignKey( + name: "FK_Candidates_Prefixes_FatherPrefixId", + table: "Candidates"); + + migrationBuilder.DropForeignKey( + name: "FK_Candidates_Prefixes_MarryPrefixId", + table: "Candidates"); + + migrationBuilder.DropForeignKey( + name: "FK_Candidates_Prefixes_MotherPrefixId", + table: "Candidates"); + + migrationBuilder.DropForeignKey( + name: "FK_Candidates_Prefixes_PrefixId", + table: "Candidates"); + + migrationBuilder.DropForeignKey( + name: "FK_Candidates_Provinces_CitizenProvinceId", + table: "Candidates"); + + migrationBuilder.DropForeignKey( + name: "FK_Candidates_Provinces_CurrentProvinceId", + table: "Candidates"); + + migrationBuilder.DropForeignKey( + name: "FK_Candidates_Provinces_RegistProvinceId", + table: "Candidates"); + + migrationBuilder.DropForeignKey( + name: "FK_Candidates_Relationships_RelationshipId", + table: "Candidates"); + + migrationBuilder.DropForeignKey( + name: "FK_Candidates_SubDistricts_CurrentSubDistrictId", + table: "Candidates"); + + migrationBuilder.DropForeignKey( + name: "FK_Candidates_SubDistricts_RegistSubDistrictId", + table: "Candidates"); + + migrationBuilder.DropForeignKey( + name: "FK_CMSCandidates_Districts_DistrictId", + table: "CMSCandidates"); + + migrationBuilder.DropForeignKey( + name: "FK_CMSCandidates_Provinces_ProvinceId", + table: "CMSCandidates"); + + migrationBuilder.DropForeignKey( + name: "FK_CMSCandidates_SubDistricts_SubDistrictId", + table: "CMSCandidates"); + + migrationBuilder.DropForeignKey( + name: "FK_Educations_EducationLevels_EducationLevelId", + table: "Educations"); + + migrationBuilder.DropTable( + name: "EducationLevels"); + + migrationBuilder.DropTable( + name: "Prefixes"); + + migrationBuilder.DropTable( + name: "Relationships"); + + migrationBuilder.DropTable( + name: "Religions"); + + migrationBuilder.DropTable( + name: "SubDistricts"); + + migrationBuilder.DropTable( + name: "Districts"); + + migrationBuilder.DropTable( + name: "Provinces"); + + migrationBuilder.DropIndex( + name: "IX_Educations_EducationLevelId", + table: "Educations"); + + migrationBuilder.DropIndex( + name: "IX_CMSCandidates_DistrictId", + table: "CMSCandidates"); + + migrationBuilder.DropIndex( + name: "IX_CMSCandidates_ProvinceId", + table: "CMSCandidates"); + + migrationBuilder.DropIndex( + name: "IX_CMSCandidates_SubDistrictId", + table: "CMSCandidates"); + + migrationBuilder.DropIndex( + name: "IX_Candidates_CitizenDistrictId", + table: "Candidates"); + + migrationBuilder.DropIndex( + name: "IX_Candidates_CitizenProvinceId", + table: "Candidates"); + + migrationBuilder.DropIndex( + name: "IX_Candidates_CurrentDistrictId", + table: "Candidates"); + + migrationBuilder.DropIndex( + name: "IX_Candidates_CurrentProvinceId", + table: "Candidates"); + + migrationBuilder.DropIndex( + name: "IX_Candidates_CurrentSubDistrictId", + table: "Candidates"); + + migrationBuilder.DropIndex( + name: "IX_Candidates_FatherPrefixId", + table: "Candidates"); + + migrationBuilder.DropIndex( + name: "IX_Candidates_MarryPrefixId", + table: "Candidates"); + + migrationBuilder.DropIndex( + name: "IX_Candidates_MotherPrefixId", + table: "Candidates"); + + migrationBuilder.DropIndex( + name: "IX_Candidates_PrefixId", + table: "Candidates"); + + migrationBuilder.DropIndex( + name: "IX_Candidates_RegistDistrictId", + table: "Candidates"); + + migrationBuilder.DropIndex( + name: "IX_Candidates_RegistProvinceId", + table: "Candidates"); + + migrationBuilder.DropIndex( + name: "IX_Candidates_RegistSubDistrictId", + table: "Candidates"); + + migrationBuilder.DropIndex( + name: "IX_Candidates_RelationshipId", + table: "Candidates"); + + migrationBuilder.AlterColumn( + name: "EducationLevelId", + table: "Educations", + type: "char(36)", + nullable: true, + comment: "Idวุฒิที่ได้รับ", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "EducationLevelName", + table: "Educations", + type: "longtext", + nullable: true, + comment: "วุฒิที่ได้รับ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AlterColumn( + name: "SubDistrictId", + table: "CMSCandidates", + type: "char(36)", + nullable: true, + comment: "Id ตำบล", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "ProvinceId", + table: "CMSCandidates", + type: "char(36)", + nullable: true, + comment: "Id จังหวัด", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "DistrictId", + table: "CMSCandidates", + type: "char(36)", + nullable: true, + comment: "Id อำเภอ", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "Address", + table: "CMSCandidates", + type: "longtext", + nullable: true, + comment: "ที่อยู่ปัจจุบัน", + oldClrType: typeof(string), + oldType: "longtext", + oldNullable: true, + oldComment: "ที่อยู่") + .Annotation("MySql:CharSet", "utf8mb4") + .OldAnnotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "DistrictName", + table: "CMSCandidates", + type: "longtext", + nullable: true, + comment: "อำเภอ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "ProvinceName", + table: "CMSCandidates", + type: "longtext", + nullable: true, + comment: "จังหวัด") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "SubDistrictName", + table: "CMSCandidates", + type: "longtext", + nullable: true, + comment: "ตำบล") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AlterColumn( + name: "RelationshipId", + table: "Candidates", + type: "char(36)", + nullable: true, + comment: "Id ศาสนา", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "RegistSubDistrictId", + table: "Candidates", + type: "char(36)", + nullable: true, + comment: "Id ตำบลที่อยู่ตามทะเบียนบ้าน", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "RegistProvinceId", + table: "Candidates", + type: "char(36)", + nullable: true, + comment: "Id จังหวัดที่อยู่ตามทะเบียนบ้าน", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "RegistDistrictId", + table: "Candidates", + type: "char(36)", + nullable: true, + comment: "Id อำเภอที่อยู่ตามทะเบียนบ้าน", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "PrefixId", + table: "Candidates", + type: "char(36)", + nullable: true, + comment: "Id คำนำหน้าชื่อ", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "MotherPrefixId", + table: "Candidates", + type: "char(36)", + nullable: true, + comment: "Id คำนำหน้าชื่อมารดา", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "MarryPrefixId", + table: "Candidates", + type: "char(36)", + nullable: true, + comment: "Id คำนำหน้าชื่อคู่สมรส", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "FatherPrefixId", + table: "Candidates", + type: "char(36)", + nullable: true, + comment: "Id คำนำหน้าชื่อบิดา", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "CurrentSubDistrictId", + table: "Candidates", + type: "char(36)", + nullable: true, + comment: "Id ตำบลที่อยู่ปัจจุบัน", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "CurrentProvinceId", + table: "Candidates", + type: "char(36)", + nullable: true, + comment: "Id จังหวัดที่อยู่ปัจจุบัน", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "CurrentDistrictId", + table: "Candidates", + type: "char(36)", + nullable: true, + comment: "Id อำเภอที่อยู่ปัจจุบัน", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "CitizenProvinceId", + table: "Candidates", + type: "char(36)", + nullable: true, + comment: "Id จังหวัดที่ออกบัตรประชาชน", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "CitizenDistrictId", + table: "Candidates", + type: "char(36)", + nullable: true, + comment: "Id เขตที่ออกบัตรประชาชน", + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true) + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AddColumn( + name: "CitizenDistrictName", + table: "Candidates", + type: "longtext", + nullable: true, + comment: "เขตที่ออกบัตรประชาชน") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "CitizenProvinceName", + table: "Candidates", + type: "longtext", + nullable: true, + comment: "จังหวัดที่ออกบัตรประชาชน") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "CurrentDistrictName", + table: "Candidates", + type: "longtext", + nullable: true, + comment: "อำเภอที่อยู่ปัจจุบัน") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "CurrentProvinceName", + table: "Candidates", + type: "longtext", + nullable: true, + comment: "จังหวัดที่อยู่ปัจจุบัน") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "CurrentSubDistrictName", + table: "Candidates", + type: "longtext", + nullable: true, + comment: "ตำบลที่อยู่ปัจจุบัน") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "FatherPrefixName", + table: "Candidates", + type: "longtext", + nullable: true, + comment: "คำนำหน้าชื่อบิดา") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "MarryPrefixName", + table: "Candidates", + type: "longtext", + nullable: true, + comment: "คำนำหน้าชื่อคู่สมรส") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "MotherPrefixName", + table: "Candidates", + type: "longtext", + nullable: true, + comment: "คำนำหน้าชื่อมารดา") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "PrefixName", + table: "Candidates", + type: "longtext", + nullable: true, + comment: "คำนำหน้าชื่อ") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "RegistDistrictName", + table: "Candidates", + type: "longtext", + nullable: true, + comment: "อำเภอที่อยู่ตามทะเบียนบ้าน") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "RegistProvinceName", + table: "Candidates", + type: "longtext", + nullable: true, + comment: "จังหวัดที่อยู่ตามทะเบียนบ้าน") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "RegistSubDistrictName", + table: "Candidates", + type: "longtext", + nullable: true, + comment: "ตำบลที่อยู่ตามทะเบียนบ้าน") + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AddColumn( + name: "RelationshipName", + table: "Candidates", + type: "longtext", + nullable: true, + comment: "ศาสนา") + .Annotation("MySql:CharSet", "utf8mb4"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "EducationLevelName", + table: "Educations"); + + migrationBuilder.DropColumn( + name: "DistrictName", + table: "CMSCandidates"); + + migrationBuilder.DropColumn( + name: "ProvinceName", + table: "CMSCandidates"); + + migrationBuilder.DropColumn( + name: "SubDistrictName", + table: "CMSCandidates"); + + migrationBuilder.DropColumn( + name: "CitizenDistrictName", + table: "Candidates"); + + migrationBuilder.DropColumn( + name: "CitizenProvinceName", + table: "Candidates"); + + migrationBuilder.DropColumn( + name: "CurrentDistrictName", + table: "Candidates"); + + migrationBuilder.DropColumn( + name: "CurrentProvinceName", + table: "Candidates"); + + migrationBuilder.DropColumn( + name: "CurrentSubDistrictName", + table: "Candidates"); + + migrationBuilder.DropColumn( + name: "FatherPrefixName", + table: "Candidates"); + + migrationBuilder.DropColumn( + name: "MarryPrefixName", + table: "Candidates"); + + migrationBuilder.DropColumn( + name: "MotherPrefixName", + table: "Candidates"); + + migrationBuilder.DropColumn( + name: "PrefixName", + table: "Candidates"); + + migrationBuilder.DropColumn( + name: "RegistDistrictName", + table: "Candidates"); + + migrationBuilder.DropColumn( + name: "RegistProvinceName", + table: "Candidates"); + + migrationBuilder.DropColumn( + name: "RegistSubDistrictName", + table: "Candidates"); + + migrationBuilder.DropColumn( + name: "RelationshipName", + table: "Candidates"); + + migrationBuilder.AlterColumn( + name: "EducationLevelId", + table: "Educations", + type: "char(36)", + nullable: false, + defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Idวุฒิที่ได้รับ") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "SubDistrictId", + table: "CMSCandidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id ตำบล") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "ProvinceId", + table: "CMSCandidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id จังหวัด") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "DistrictId", + table: "CMSCandidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id อำเภอ") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "Address", + table: "CMSCandidates", + type: "longtext", + nullable: true, + comment: "ที่อยู่", + oldClrType: typeof(string), + oldType: "longtext", + oldNullable: true, + oldComment: "ที่อยู่ปัจจุบัน") + .Annotation("MySql:CharSet", "utf8mb4") + .OldAnnotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.AlterColumn( + name: "RelationshipId", + table: "Candidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id ศาสนา") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "RegistSubDistrictId", + table: "Candidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id ตำบลที่อยู่ตามทะเบียนบ้าน") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "RegistProvinceId", + table: "Candidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id จังหวัดที่อยู่ตามทะเบียนบ้าน") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "RegistDistrictId", + table: "Candidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id อำเภอที่อยู่ตามทะเบียนบ้าน") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "PrefixId", + table: "Candidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id คำนำหน้าชื่อ") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "MotherPrefixId", + table: "Candidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id คำนำหน้าชื่อมารดา") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "MarryPrefixId", + table: "Candidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id คำนำหน้าชื่อคู่สมรส") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "FatherPrefixId", + table: "Candidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id คำนำหน้าชื่อบิดา") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "CurrentSubDistrictId", + table: "Candidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id ตำบลที่อยู่ปัจจุบัน") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "CurrentProvinceId", + table: "Candidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id จังหวัดที่อยู่ปัจจุบัน") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "CurrentDistrictId", + table: "Candidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id อำเภอที่อยู่ปัจจุบัน") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "CitizenProvinceId", + table: "Candidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id จังหวัดที่ออกบัตรประชาชน") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.AlterColumn( + name: "CitizenDistrictId", + table: "Candidates", + type: "char(36)", + nullable: true, + collation: "ascii_general_ci", + oldClrType: typeof(Guid), + oldType: "char(36)", + oldNullable: true, + oldComment: "Id เขตที่ออกบัตรประชาชน") + .OldAnnotation("Relational:Collation", "ascii_general_ci"); + + migrationBuilder.CreateTable( + name: "EducationLevels", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(100)", maxLength: 100, nullable: false, comment: "ระดับการศึกษา") + .Annotation("MySql:CharSet", "utf8mb4"), + IsActive = table.Column(type: "tinyint(1)", nullable: false, comment: "สถานะการใช้งาน"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "สร้างข้อมูลเมื่อ"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "แก้ไขข้อมูลล่าสุดเมื่อ"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_EducationLevels", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "Prefixes", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(50)", maxLength: 50, nullable: false, comment: "รายละเอียดคำนำหน้า") + .Annotation("MySql:CharSet", "utf8mb4"), + IsActive = table.Column(type: "tinyint(1)", nullable: false, comment: "สถานะการใช้งาน"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "สร้างข้อมูลเมื่อ"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "แก้ไขข้อมูลล่าสุดเมื่อ"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_Prefixes", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "Provinces", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(150)", maxLength: 150, nullable: false, comment: "จังหวัด") + .Annotation("MySql:CharSet", "utf8mb4"), + IsActive = table.Column(type: "tinyint(1)", nullable: false, comment: "สถานะการใช้งาน"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "สร้างข้อมูลเมื่อ"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "แก้ไขข้อมูลล่าสุดเมื่อ"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_Provinces", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "Relationships", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(50)", maxLength: 50, nullable: false, comment: "ชื่อความสัมพันธ์") + .Annotation("MySql:CharSet", "utf8mb4"), + IsActive = table.Column(type: "tinyint(1)", nullable: false, comment: "สถานะการใช้งาน"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "สร้างข้อมูลเมื่อ"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "แก้ไขข้อมูลล่าสุดเมื่อ"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_Relationships", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "Religions", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(100)", maxLength: 100, nullable: false, comment: "ศาสนา") + .Annotation("MySql:CharSet", "utf8mb4"), + IsActive = table.Column(type: "tinyint(1)", nullable: false, comment: "สถานะการใช้งาน"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "สร้างข้อมูลเมื่อ"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "แก้ไขข้อมูลล่าสุดเมื่อ"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4") + }, + constraints: table => + { + table.PrimaryKey("PK_Religions", x => x.Id); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "Districts", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(150)", maxLength: 150, nullable: false, comment: "เขต/อำเภอ") + .Annotation("MySql:CharSet", "utf8mb4"), + IsActive = table.Column(type: "tinyint(1)", nullable: false, comment: "สถานะการใช้งาน"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "สร้างข้อมูลเมื่อ"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "แก้ไขข้อมูลล่าสุดเมื่อ"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4"), + ProvinceId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci") + }, + constraints: table => + { + table.PrimaryKey("PK_Districts", x => x.Id); + table.ForeignKey( + name: "FK_Districts_Provinces_ProvinceId", + column: x => x.ProvinceId, + principalTable: "Provinces", + principalColumn: "Id"); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateTable( + name: "SubDistricts", + columns: table => new + { + Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), + Name = table.Column(type: "varchar(150)", maxLength: 150, nullable: false, comment: "เขต/อำเภอ") + .Annotation("MySql:CharSet", "utf8mb4"), + ZipCode = table.Column(type: "varchar(10)", maxLength: 10, nullable: false, comment: "รหัสไปรษณีย์") + .Annotation("MySql:CharSet", "utf8mb4"), + IsActive = table.Column(type: "tinyint(1)", nullable: false, comment: "สถานะการใช้งาน"), + CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "สร้างข้อมูลเมื่อ"), + CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "แก้ไขข้อมูลล่าสุดเมื่อ"), + LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4"), + CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล") + .Annotation("MySql:CharSet", "utf8mb4"), + LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด") + .Annotation("MySql:CharSet", "utf8mb4"), + DistrictId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci") + }, + constraints: table => + { + table.PrimaryKey("PK_SubDistricts", x => x.Id); + table.ForeignKey( + name: "FK_SubDistricts_Districts_DistrictId", + column: x => x.DistrictId, + principalTable: "Districts", + principalColumn: "Id"); + }) + .Annotation("MySql:CharSet", "utf8mb4"); + + migrationBuilder.CreateIndex( + name: "IX_Educations_EducationLevelId", + table: "Educations", + column: "EducationLevelId"); + + migrationBuilder.CreateIndex( + name: "IX_CMSCandidates_DistrictId", + table: "CMSCandidates", + column: "DistrictId"); + + migrationBuilder.CreateIndex( + name: "IX_CMSCandidates_ProvinceId", + table: "CMSCandidates", + column: "ProvinceId"); + + migrationBuilder.CreateIndex( + name: "IX_CMSCandidates_SubDistrictId", + table: "CMSCandidates", + column: "SubDistrictId"); + + migrationBuilder.CreateIndex( + name: "IX_Candidates_CitizenDistrictId", + table: "Candidates", + column: "CitizenDistrictId"); + + migrationBuilder.CreateIndex( + name: "IX_Candidates_CitizenProvinceId", + table: "Candidates", + column: "CitizenProvinceId"); + + migrationBuilder.CreateIndex( + name: "IX_Candidates_CurrentDistrictId", + table: "Candidates", + column: "CurrentDistrictId"); + + migrationBuilder.CreateIndex( + name: "IX_Candidates_CurrentProvinceId", + table: "Candidates", + column: "CurrentProvinceId"); + + migrationBuilder.CreateIndex( + name: "IX_Candidates_CurrentSubDistrictId", + table: "Candidates", + column: "CurrentSubDistrictId"); + + migrationBuilder.CreateIndex( + name: "IX_Candidates_FatherPrefixId", + table: "Candidates", + column: "FatherPrefixId"); + + migrationBuilder.CreateIndex( + name: "IX_Candidates_MarryPrefixId", + table: "Candidates", + column: "MarryPrefixId"); + + migrationBuilder.CreateIndex( + name: "IX_Candidates_MotherPrefixId", + table: "Candidates", + column: "MotherPrefixId"); + + migrationBuilder.CreateIndex( + name: "IX_Candidates_PrefixId", + table: "Candidates", + column: "PrefixId"); + + migrationBuilder.CreateIndex( + name: "IX_Candidates_RegistDistrictId", + table: "Candidates", + column: "RegistDistrictId"); + + migrationBuilder.CreateIndex( + name: "IX_Candidates_RegistProvinceId", + table: "Candidates", + column: "RegistProvinceId"); + + migrationBuilder.CreateIndex( + name: "IX_Candidates_RegistSubDistrictId", + table: "Candidates", + column: "RegistSubDistrictId"); + + migrationBuilder.CreateIndex( + name: "IX_Candidates_RelationshipId", + table: "Candidates", + column: "RelationshipId"); + + migrationBuilder.CreateIndex( + name: "IX_Districts_ProvinceId", + table: "Districts", + column: "ProvinceId"); + + migrationBuilder.CreateIndex( + name: "IX_SubDistricts_DistrictId", + table: "SubDistricts", + column: "DistrictId"); + + migrationBuilder.AddForeignKey( + name: "FK_Candidates_Districts_CitizenDistrictId", + table: "Candidates", + column: "CitizenDistrictId", + principalTable: "Districts", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_Candidates_Districts_CurrentDistrictId", + table: "Candidates", + column: "CurrentDistrictId", + principalTable: "Districts", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_Candidates_Districts_RegistDistrictId", + table: "Candidates", + column: "RegistDistrictId", + principalTable: "Districts", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_Candidates_Prefixes_FatherPrefixId", + table: "Candidates", + column: "FatherPrefixId", + principalTable: "Prefixes", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_Candidates_Prefixes_MarryPrefixId", + table: "Candidates", + column: "MarryPrefixId", + principalTable: "Prefixes", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_Candidates_Prefixes_MotherPrefixId", + table: "Candidates", + column: "MotherPrefixId", + principalTable: "Prefixes", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_Candidates_Prefixes_PrefixId", + table: "Candidates", + column: "PrefixId", + principalTable: "Prefixes", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_Candidates_Provinces_CitizenProvinceId", + table: "Candidates", + column: "CitizenProvinceId", + principalTable: "Provinces", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_Candidates_Provinces_CurrentProvinceId", + table: "Candidates", + column: "CurrentProvinceId", + principalTable: "Provinces", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_Candidates_Provinces_RegistProvinceId", + table: "Candidates", + column: "RegistProvinceId", + principalTable: "Provinces", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_Candidates_Relationships_RelationshipId", + table: "Candidates", + column: "RelationshipId", + principalTable: "Relationships", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_Candidates_SubDistricts_CurrentSubDistrictId", + table: "Candidates", + column: "CurrentSubDistrictId", + principalTable: "SubDistricts", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_Candidates_SubDistricts_RegistSubDistrictId", + table: "Candidates", + column: "RegistSubDistrictId", + principalTable: "SubDistricts", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_CMSCandidates_Districts_DistrictId", + table: "CMSCandidates", + column: "DistrictId", + principalTable: "Districts", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_CMSCandidates_Provinces_ProvinceId", + table: "CMSCandidates", + column: "ProvinceId", + principalTable: "Provinces", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_CMSCandidates_SubDistricts_SubDistrictId", + table: "CMSCandidates", + column: "SubDistrictId", + principalTable: "SubDistricts", + principalColumn: "Id"); + + migrationBuilder.AddForeignKey( + name: "FK_Educations_EducationLevels_EducationLevelId", + table: "Educations", + column: "EducationLevelId", + principalTable: "EducationLevels", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + } + } +} diff --git a/Models/CMSCandidate.cs b/Models/CMSCandidate.cs index 2d884b9..f679bf7 100644 --- a/Models/CMSCandidate.cs +++ b/Models/CMSCandidate.cs @@ -31,17 +31,26 @@ namespace BMA.EHR.Recurit.Exam.Service.Models [Comment("ข้อมูลเกี่ยวกับเรา")] public string? About { get; set; } - [Comment("ที่อยู่")] + [Comment("ที่อยู่ปัจจุบัน")] public string? Address { get; set; } + [Comment("Id จังหวัด")] + public Guid? ProvinceId { get; set; } + [Comment("จังหวัด")] - public virtual Province? Province { get; set; } + public string? ProvinceName { get; set; } + + [Comment("Id อำเภอ")] + public Guid? DistrictId { get; set; } [Comment("อำเภอ")] - public virtual District? District { get; set; } + public string? DistrictName { get; set; } + + [Comment("Id ตำบล")] + public Guid? SubDistrictId { get; set; } [Comment("ตำบล")] - public virtual SubDistrict? SubDistrict { get; set; } + public string? SubDistrictName { get; set; } [MaxLength(10), Comment("รหัสไปรษณีย์")] public string? ZipCode { get; set; } diff --git a/Models/Candidate.cs b/Models/Candidate.cs index eb7bb51..18b8454 100644 --- a/Models/Candidate.cs +++ b/Models/Candidate.cs @@ -36,8 +36,11 @@ namespace BMA.EHR.Recurit.Exam.Service.Models + [Comment("Id คำนำหน้าชื่อ")] + public Guid? PrefixId { get; set; } + [Comment("คำนำหน้าชื่อ")] - public virtual Prefix? Prefix { get; set; } + public string? PrefixName { get; set; } [MaxLength(100), Column(Order = 1), Comment("ชื่อจริง")] public string? FirstName { get; set; } @@ -51,8 +54,11 @@ namespace BMA.EHR.Recurit.Exam.Service.Models [MaxLength(40), Comment("วันเกิด")] public DateTime? DateOfBirth { get; set; } + [Comment("Id ศาสนา")] + public Guid? RelationshipId { get; set; } + [Comment("ศาสนา")] - public virtual Relationship? Relationship { get; set; } + public string? RelationshipName { get; set; } [MaxLength(200), Comment("อีเมล")] public string? Email { get; set; } @@ -60,11 +66,17 @@ namespace BMA.EHR.Recurit.Exam.Service.Models [MaxLength(20), Comment("เลขประจำตัวประชาชน")] public string? CitizenId { get; set; } + [Comment("Id เขตที่ออกบัตรประชาชน")] + public Guid? CitizenDistrictId { get; set; } + [Comment("เขตที่ออกบัตรประชาชน")] - public virtual District? CitizenDistrict { get; set; } + public string? CitizenDistrictName { get; set; } + + [Comment("Id จังหวัดที่ออกบัตรประชาชน")] + public Guid? CitizenProvinceId { get; set; } [Comment("จังหวัดที่ออกบัตรประชาชน")] - public virtual Province? CitizenProvince { get; set; } + public string? CitizenProvinceName { get; set; } [Comment("วันที่ออกบัตร")] public DateTime? CitizenDate { get; set; } @@ -84,14 +96,23 @@ namespace BMA.EHR.Recurit.Exam.Service.Models [Comment("ที่อยู่ตามทะเบียนบ้าน")] public string? RegistAddress { get; set; } + [Comment("Id จังหวัดที่อยู่ตามทะเบียนบ้าน")] + public Guid? RegistProvinceId { get; set; } + [Comment("จังหวัดที่อยู่ตามทะเบียนบ้าน")] - public virtual Province? RegistProvince { get; set; } + public string? RegistProvinceName { get; set; } + + [Comment("Id อำเภอที่อยู่ตามทะเบียนบ้าน")] + public Guid? RegistDistrictId { get; set; } [Comment("อำเภอที่อยู่ตามทะเบียนบ้าน")] - public virtual District? RegistDistrict { get; set; } + public string? RegistDistrictName { get; set; } + + [Comment("Id ตำบลที่อยู่ตามทะเบียนบ้าน")] + public Guid? RegistSubDistrictId { get; set; } [Comment("ตำบลที่อยู่ตามทะเบียนบ้าน")] - public virtual SubDistrict? RegistSubDistrict { get; set; } + public string? RegistSubDistrictName { get; set; } [MaxLength(10), Comment("รหัสไปรษณีย์ที่อยู่ตามทะเบียนบ้าน")] public string? RegistZipCode { get; set; } @@ -102,14 +123,23 @@ namespace BMA.EHR.Recurit.Exam.Service.Models [Comment("ที่อยู่ปัจจุบัน")] public string? CurrentAddress { get; set; } + [Comment("Id จังหวัดที่อยู่ปัจจุบัน")] + public Guid? CurrentProvinceId { get; set; } + [Comment("จังหวัดที่อยู่ปัจจุบัน")] - public virtual Province? CurrentProvince { get; set; } + public string? CurrentProvinceName { get; set; } + + [Comment("Id อำเภอที่อยู่ปัจจุบัน")] + public Guid? CurrentDistrictId { get; set; } [Comment("อำเภอที่อยู่ปัจจุบัน")] - public virtual District? CurrentDistrict { get; set; } + public string? CurrentDistrictName { get; set; } + + [Comment("Id ตำบลที่อยู่ปัจจุบัน")] + public Guid? CurrentSubDistrictId { get; set; } [Comment("ตำบลที่อยู่ปัจจุบัน")] - public virtual SubDistrict? CurrentSubDistrict { get; set; } + public string? CurrentSubDistrictName { get; set; } [MaxLength(10), Comment("รหัสไปรษณีย์ที่อยู่ปัจจุบัน")] public string? CurrentZipCode { get; set; } @@ -119,8 +149,11 @@ namespace BMA.EHR.Recurit.Exam.Service.Models [Comment("คู่สมรส")] public bool? Marry { get; set; } + [Comment("Id คำนำหน้าชื่อคู่สมรส")] + public Guid? MarryPrefixId { get; set; } + [Comment("คำนำหน้าชื่อคู่สมรส")] - public virtual Prefix? MarryPrefix { get; set; } + public string? MarryPrefixName { get; set; } [MaxLength(100), Comment("ชื่อจริงคู่สมรส")] public string? MarryFirstName { get; set; } @@ -134,8 +167,11 @@ namespace BMA.EHR.Recurit.Exam.Service.Models [MaxLength(100), Comment("สัญชาติคู่สมรส")] public string? MarryNationality { get; set; } + [Comment("Id คำนำหน้าชื่อบิดา")] + public Guid? FatherPrefixId { get; set; } + [Comment("คำนำหน้าชื่อบิดา")] - public virtual Prefix? FatherPrefix { get; set; } + public string? FatherPrefixName { get; set; } [MaxLength(100), Comment("ชื่อจริงบิดา")] public string? FatherFirstName { get; set; } @@ -149,8 +185,11 @@ namespace BMA.EHR.Recurit.Exam.Service.Models [MaxLength(100), Comment("สัญชาติบิดา")] public string? FatherNationality { get; set; } + [Comment("Id คำนำหน้าชื่อมารดา")] + public Guid? MotherPrefixId { get; set; } + [Comment("คำนำหน้าชื่อมารดา")] - public virtual Prefix? MotherPrefix { get; set; } + public string? MotherPrefixName { get; set; } [MaxLength(100), Comment("ชื่อจริงมารดา")] public string? MotherFirstName { get; set; } diff --git a/Models/Education.cs b/Models/Education.cs index d8d054a..2954925 100644 --- a/Models/Education.cs +++ b/Models/Education.cs @@ -9,8 +9,11 @@ namespace BMA.EHR.Recurit.Exam.Service.Models [Required, Column(Order = 7), Comment("Id ผู้สมัคร")] public virtual Candidate? Candidate { get; set; } - [Required, Column(Order = 5), Comment("วุฒิที่ได้รับ")] - public virtual EducationLevel? EducationLevel { get; set; } + [Comment("Idวุฒิที่ได้รับ")] + public Guid? EducationLevelId { get; set; } + + [Comment("วุฒิที่ได้รับ")] + public string? EducationLevelName { get; set; } [Required, Column(Order = 4), Comment("สาขาวิชา/วิชาเอก")] public string Major { get; set; } = string.Empty; diff --git a/Models/OrganizationOrganization.cs b/Models/OrganizationOrganization.cs new file mode 100644 index 0000000..06c6532 --- /dev/null +++ b/Models/OrganizationOrganization.cs @@ -0,0 +1,15 @@ +using Microsoft.EntityFrameworkCore; +using System.ComponentModel.DataAnnotations.Schema; +using System.ComponentModel.DataAnnotations; + +namespace BMA.EHR.Recurit.Exam.Service.Models +{ + public class OrganizationOrganization : EntityBase + { + [Required, MaxLength(100), Column(Order = 1), Comment("ข้อมูลโครงสร้างหน่วยงานชื่อ หน่วยงาน")] + public string Name { get; set; } = string.Empty; + + [Column(Order = 2), Comment("สถานะการใช้งาน")] + public bool IsActive { get; set; } = true; + } +} diff --git a/Models/OrganizationShortName.cs b/Models/OrganizationShortName.cs new file mode 100644 index 0000000..8dfcac3 --- /dev/null +++ b/Models/OrganizationShortName.cs @@ -0,0 +1,19 @@ +using Microsoft.EntityFrameworkCore; +using System.ComponentModel.DataAnnotations.Schema; +using System.ComponentModel.DataAnnotations; + +namespace BMA.EHR.Recurit.Exam.Service.Models +{ + public class OrganizationShortName : EntityBase + { + [Required, MaxLength(100), Column(Order = 1), Comment("ข้อมูลโครงสร้างหน่วยงานชื่อ รหัสหน่วยงาน")] + public string AgencyCode { get; set; } = string.Empty; + [Required, MaxLength(100), Column(Order = 2), Comment("ข้อมูลโครงสร้างหน่วยงานชื่อ รหัสส่วนราชการ")] + public string GovernmentCode { get; set; } = string.Empty; + [Required, MaxLength(100), Column(Order = 3), Comment("ข้อมูลโครงสร้างหน่วยงานชื่อ ตัวย่อหน่วยงาน")] + public string Name { get; set; } = string.Empty; + + [Column(Order = 4), Comment("สถานะการใช้งาน")] + public bool IsActive { get; set; } = true; + } +} diff --git a/Program.cs b/Program.cs index 44806a3..34d02c0 100644 --- a/Program.cs +++ b/Program.cs @@ -65,6 +65,9 @@ builder.Host.UseSerilog(); var defaultConnection = builder.Configuration.GetConnectionString("DefaultConnection"); builder.Services.AddDbContext(options => options.UseMySql(defaultConnection, ServerVersion.AutoDetect(defaultConnection))); +var metadataConnection = builder.Configuration.GetConnectionString("MetadataConnection"); +builder.Services.AddDbContext(options => + options.UseMySql(metadataConnection, ServerVersion.AutoDetect(metadataConnection))); // Add config CORS builder.Services.AddCors(options => options.AddDefaultPolicy(builder => @@ -78,13 +81,6 @@ builder.Services.AddCors(options => options.AddDefaultPolicy(builder => })); // Register Service -builder.Services.AddTransient(); -builder.Services.AddTransient(); -builder.Services.AddTransient(); -builder.Services.AddTransient(); -builder.Services.AddTransient(); -builder.Services.AddTransient(); -builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); @@ -136,11 +132,6 @@ await using var db = scope.ServiceProvider.GetRequiredServiceMTTX1p$jaEjXz|Q)- zvNe#)^HJ_2LzSD0qdyuo2!GhVvtI(|eD2aztcBX#d&N`rX7tij*|!57%w=TSo2#r8 zcIjiB!PPWJc#!gnJLN$8Y@WimX$@s|qBIXmZ|D;1cccp0RW2Ks-0~3u!Sp(m?ew%$ zJRA4Xh9)A&*`26~R(`PMa5~~^>rb_%i&&oqTUH->Km2Z^DYIr(Y3emPrddPhg)sn? z+OjE>egPc>`l(em%NJa5$nox+Ss{o)MTzuKQ9y7#N@koB#97(2_qDhT76h4Wk`bfq z^wNJma9fm6WBs^A?PiHOm`8NFA@;ZOz=?~UTbxYCt4UVj$^NIIP5s(Yn*diR`%1I; zh;pYbS^)~I@t^7kZ&0ZzyD`@2vszb_;c0>>?#^L5Jx9@Ll%AvDa(FUZ6GX87eA=S; z!IhCE_ne%lQ`EQkBG~%24+3Wj?CfCBAn`gCip%ZC#(On#Y8V2QzZ2Y@oNMwaph2Wd zPo|j;eEkv@Hr{){GZJ6$qt4>;c*p5@iY=F|{;U?}N`Ptccw!A@3odmdxTGt}&nKB3lIOvSAJyFXM+I`>HAW~byt_#gZd(4AHZTE!HRczH8xsC>aD-BUm=gx=oB z#np*ivj`pQkB48v*1T}%54fNB**dsZy}-H{OC*IRj^}r=um5bd#06DP8h0v)=C1>`UWe99HvTM9&Qv{qR& zzT8;*40cfCAy*N$ojE(}$x)Nwr);l*s~#TRMh!{#lEoK~wWbBqgP^ttX$cp=_x{{{ z29*?M48%nb5O&vtBYmMFUQbVzkfz7-Rw}6yf-{uDQCbP?4vlW3R=RP3*gVvMH}1XI zmC9$V3JS+-(YNY=njU`n8zf}$JJw466YtTBK(`fY)m4rNNv@Kp2{b4?i$R?Cb&gep z7Y^PdC5BowAvHSzoAZsVUvXq*BIs1zX$Cv*yPn>>)W7^HK#==~L&@;X?sTfd zhi|k>S{nX$Q1KOdaZHi7J@8|g(TE7OV}(fd_IeND(+W#oDmwmopN;$>j#kP^oj#(1 zr%99L$u9+wWcQcvU77>g>7|Y?D8%XVLbXt^3(i?Aq46!^HM7qj#eP5`EOAoZ1~VQ~6Ia znI3Jj5K*&NCnX20oBK)in1X~P%wg1g&tEh1%N3g{Pzke*NKk|+`x!AAZ1ZfyDLtR< z5en&NOVEre%nn#CerP^wv=ZhOZ`;u(S_O};G!$WamWw|yxjHW2+}5egzN#vTfuO#( zp%m5Cjuy*$EmMZD0LFDPQKrI$hCt``51ljV_!e}kNNpl?x=XX>^S-zp6IxH@&{oMTn zc#|O#7?QQWlS$mgsaq9Ux7@{zeObSJpSb%w-e+wW$r&ba_K4Z~T+c*Wc6|IAHxiK= z+^Q!@8&RF*YNz@MXBQ+5p9nC#Gl%E3u}M+@L!;A@5M`Z;d%hvn0G48^3(=Ljv87HxcTg81^3mq@m<}Wc{awFVqjvv*StHLEUETDcSY&&C!_coO>uXsmv zxK3XY^|(^BF9O6yN!EU3f(R%-W&MG@zH?+&_8l|7wLe!beTIRBU%QOzsA-4i+;R4R zh*qAzbVQ_n^tJ6GQ>|;qHd48NMF5>P8#c%kMu!3&EvFgi zjpOc;Ig3!V-JxUEvR^tcrGLz5?Dnm2sVrP9Pq)JT8)cS12fIXfe1-nTc{jS{2Jfcf zGBjqhFrsmZXkRi@6)YKP6O7TA`=Gc`?(34c+(z)Ls&&&T*<|E|&!ZfvdvE?OzWTg5 zV(Tlx?j~O6*+W_OhNkkaiyEK`ea0*;(KFWSNBl<-1zT0%1tm%RN*$R^8~bhRy+dcP zZ|R33TB-s$mm@}>wAp=cZGuF1f}KMHO@@Rovp8sqt3+iMIp*wESDv@1xtxvhYnZmR zLkKHRA-??$qg9G?@T?ud)&@6(t96bo;FB(AVwGb7?S$pMRl_Pw&1PMn9l zT^DMP2C{_vtvYe_aXD{lKZ2mb(>U7`rFjIszew{`GhS0A!zCPYq4b;YSRy4GPg(-? zSbW8&h6;_=govKntnHS{02d*jEE0Z4e5^X#0ZJU&nV-a1f0#BNSeZ56TKTo;HVaui z>Y!BopShvh?!XqETqC(xl}Uu@dlhXFw76Aevl1mW7m#h-pDtwO`KYlO$dJm@zpO+4RDQIqYMAsg9JI&a$lgGpvEYW$dxC(J#Pa~cpw<6rvSn9dmt+P63F*V;BjX}l(( zmg-P_Q~O(`t*z z+#7b1tYxrplF{7-8#$Kf=|^_s-WdGLc%yKq0V#i7b@Sh$|7*N0)nFdp4j$gmO#(a} zURnQt?weOnhZ-qP+o>%T#O!SwOQ>U*>eDX zep|YMG_MmDrrm(H%C8Ehw~59XxCI2OYjax$8%; x.LogoImg) .Include(x => x.CMSAgencys) .Include(x => x.CMSGovernments) - .Include(x => x.Province) - .Include(x => x.District) - .Include(x => x.SubDistrict) .FirstOrDefaultAsync(); if (cmsCandidates == null) { @@ -119,35 +119,38 @@ namespace BMA.EHR.Recurit.Exam.Service.Services if (updated.ProvinceId != null) { - var province = await _context.Provinces.AsQueryable() + var province = await _contextMetadata.Provinces.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.ProvinceId)); if (province == null) throw new Exception(GlobalMessages.ProvinceNotFound); - cms.Province = province; + cms.ProvinceId = province.Id; + cms.ProvinceName = province.Name; } if (updated.DistrictId != null) { - var pistrict = await _context.Districts.AsQueryable() + var pistrict = await _contextMetadata.Districts.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.DistrictId)); if (pistrict == null) throw new Exception(GlobalMessages.DistrictNotFound); - cms.District = pistrict; + cms.DistrictId = pistrict.Id; + cms.DistrictName = pistrict.Name; } if (updated.SubDistrictId != null) { - var subDistrict = await _context.SubDistricts.AsQueryable() + var subDistrict = await _contextMetadata.SubDistricts.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.SubDistrictId)); if (subDistrict == null) throw new Exception(GlobalMessages.SubDistrictNotFound); - cms.SubDistrict = subDistrict; + cms.SubDistrictId = subDistrict.Id; + cms.SubDistrictName = subDistrict.Name; cms.ZipCode = subDistrict.ZipCode; } @@ -265,7 +268,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services Subtitle = x.NameEn, Supervised = x.ShortName, Telephone = x.Telephone, - Address = x.Address + " " + (x.SubDistrict == null ? "" : "แขวง" + x.SubDistrict.Name + " ") + (x.District == null ? "" : "เขต" + x.District.Name) + " " + (x.Province == null ? "" : x.Province.Name) + " " + (x.SubDistrict == null ? "" : x.SubDistrict.ZipCode), + Address = x.Address + " " + (x.SubDistrictName == null ? "" : "แขวง" + x.SubDistrictName + " ") + (x.DistrictName == null ? "" : "เขต" + x.DistrictName) + " " + (x.ProvinceName == null ? "" : x.ProvinceName) + " " + (x.ZipCode == null ? "" : x.ZipCode), Divisions = x.CMSAgencys.Select(s => new HomePageLinkResponseItem { Title = s.Name, @@ -339,11 +342,11 @@ namespace BMA.EHR.Recurit.Exam.Service.Services Id = x.Id.ToString(), Category = "doctor", Category_id = "doctor", - Start = x.ExamDate.ToShortDateString(), - End = x.ExamDate.ToShortDateString(), - Exam_date = x.ExamDate.ToShortDateString(), - Announcement_date = x.AnnouncementStartDate.ToShortDateString(), - Announcement_endDate = x.AnnouncementEndDate.ToShortDateString(), + Start = x.ExamDate.ToString("MM-dd-yyyy"), + End = x.ExamDate.ToString("MM-dd-yyyy"), + Exam_date = x.ExamDate.ToString("MM-dd-yyyy"), + Announcement_date = x.AnnouncementStartDate.ToString("MM-dd-yyyy"), + Announcement_endDate = x.AnnouncementEndDate.ToString("MM-dd-yyyy"), Title = x.Name, Image = x.PeriodExamImages.OrderBy(o => o.CreatedAt).FirstOrDefault() == null ? "" : @@ -378,8 +381,8 @@ namespace BMA.EHR.Recurit.Exam.Service.Services Id = x.Id.ToString(), Category = "doctor", Category_id = "doctor", - Start = x.AnnouncementStartDate.ToShortDateString(), - End = x.AnnouncementEndDate.ToShortDateString(), + Start = x.AnnouncementStartDate.ToString("MM-dd-yyyy"), + End = x.AnnouncementEndDate.ToString("MM-dd-yyyy"), Title = x.Name, Detail = x.Detail, Images = x.PeriodExamImages.Select(s => new HomePageLinkResponseItem diff --git a/Services/CandidateService.cs b/Services/CandidateService.cs index a4db168..139130a 100644 --- a/Services/CandidateService.cs +++ b/Services/CandidateService.cs @@ -15,6 +15,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services #region " Fields " private readonly ApplicationDbContext _context; + private readonly MetadataDbContext _contextMetadata; private readonly IHttpContextAccessor _httpContextAccessor; private readonly MinIOService _minioService; @@ -23,10 +24,12 @@ namespace BMA.EHR.Recurit.Exam.Service.Services #region " Constructor and Destructor " public CandidateService(ApplicationDbContext context, + MetadataDbContext contextMetadata, IHttpContextAccessor httpContextAccessor, MinIOService minioService) { _context = context; + _contextMetadata = contextMetadata; _httpContextAccessor = httpContextAccessor; _minioService = minioService; } @@ -46,19 +49,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Services public async Task GetsAsync(string candidateId) { var candidate = await _context.Candidates.AsQueryable() - .Include(x => x.Prefix) - .Include(x => x.Relationship) - .Include(x => x.CitizenProvince) - .Include(x => x.CitizenDistrict) - .Include(x => x.RegistProvince) - .Include(x => x.RegistDistrict) - .Include(x => x.RegistSubDistrict) - .Include(x => x.CurrentProvince) - .Include(x => x.CurrentDistrict) - .Include(x => x.CurrentSubDistrict) - .Include(x => x.MarryPrefix) - .Include(x => x.FatherPrefix) - .Include(x => x.MotherPrefix) .FirstOrDefaultAsync(x => x.Id == Guid.Parse(candidateId)); if (candidate == null) @@ -87,18 +77,18 @@ namespace BMA.EHR.Recurit.Exam.Service.Services .Where(x => x.PeriodExam == exam && x.UserId == UserId && x.PositionExam == position) .Select(x => new CandidateInformationResponseItem { - Prefix = x.Prefix, - PrefixId = x.Prefix != null ? x.Prefix.Id.ToString() : null, + Prefix = x.PrefixName, + PrefixId = x.PrefixId != null ? x.PrefixId.ToString() : null, FirstName = x.FirstName, LastName = x.LastName, Nationality = x.Nationality, DateOfBirth = x.DateOfBirth, - Relationship = x.Relationship, - RelationshipId = x.Relationship != null ? x.Relationship.Id.ToString() : null, - CitizenProvince = x.CitizenProvince, - CitizenProvinceId = x.CitizenProvince != null ? x.CitizenProvince.Id.ToString() : null, - CitizenDistrict = x.CitizenDistrict, - CitizenDistrictId = x.CitizenDistrict != null ? x.CitizenDistrict.Id.ToString() : null, + Relationship = x.RelationshipName, + RelationshipId = x.RelationshipId != null ? x.RelationshipId.ToString() : null, + CitizenProvince = x.CitizenProvinceName, + CitizenProvinceId = x.CitizenProvinceId != null ? x.CitizenProvinceId.ToString() : null, + CitizenDistrict = x.CitizenDistrictName, + CitizenDistrictId = x.CitizenDistrictId != null ? x.CitizenDistrictId.ToString() : null, CitizenDate = x.CitizenDate, Email = x.Email, CitizenId = x.CitizenId, @@ -114,18 +104,18 @@ namespace BMA.EHR.Recurit.Exam.Service.Services .Where(x => x.PeriodExam == exam && x.UserId == UserId) .Select(x => new CandidateInformationResponseItem { - Prefix = x.Prefix, - PrefixId = x.Prefix != null ? x.Prefix.Id.ToString() : null, + Prefix = x.PrefixName, + PrefixId = x.PrefixId != null ? x.PrefixId.ToString() : null, FirstName = x.FirstName, LastName = x.LastName, Nationality = x.Nationality, DateOfBirth = x.DateOfBirth, - Relationship = x.Relationship, - RelationshipId = x.Relationship != null ? x.Relationship.Id.ToString() : null, - CitizenProvince = x.CitizenProvince, - CitizenProvinceId = x.CitizenProvince != null ? x.CitizenProvince.Id.ToString() : null, - CitizenDistrict = x.CitizenDistrict, - CitizenDistrictId = x.CitizenDistrict != null ? x.CitizenDistrict.Id.ToString() : null, + Relationship = x.RelationshipName, + RelationshipId = x.RelationshipId != null ? x.RelationshipId.ToString() : null, + CitizenProvince = x.CitizenProvinceName, + CitizenProvinceId = x.CitizenProvinceId != null ? x.CitizenProvinceId.ToString() : null, + CitizenDistrict = x.CitizenDistrictName, + CitizenDistrictId = x.CitizenDistrictId != null ? x.CitizenDistrictId.ToString() : null, CitizenDate = x.CitizenDate, Email = x.Email, CitizenId = x.CitizenId, @@ -158,21 +148,21 @@ namespace BMA.EHR.Recurit.Exam.Service.Services .Select(x => new CandidateAddressResponseItem { RegistAddress = x.RegistAddress, - RegistProvince = x.RegistProvince, - RegistProvinceId = x.RegistProvince != null ? x.RegistProvince.Id.ToString() : null, - RegistDistrict = x.RegistDistrict, - RegistDistrictId = x.RegistDistrict != null ? x.RegistDistrict.Id.ToString() : null, - RegistSubDistrict = x.RegistSubDistrict, - RegistSubDistrictId = x.RegistSubDistrict != null ? x.RegistSubDistrict.Id.ToString() : null, + RegistProvince = x.RegistProvinceName, + RegistProvinceId = x.RegistProvinceId != null ? x.RegistProvinceId.ToString() : null, + RegistDistrict = x.RegistDistrictName, + RegistDistrictId = x.RegistDistrictId != null ? x.RegistDistrictId.ToString() : null, + RegistSubDistrict = x.RegistSubDistrictName, + RegistSubDistrictId = x.RegistSubDistrictId != null ? x.RegistSubDistrictId.ToString() : null, RegistZipCode = x.RegistZipCode, RegistSame = x.RegistSame, CurrentAddress = x.CurrentAddress, - CurrentProvince = x.CurrentProvince, - CurrentProvinceId = x.CurrentProvince != null ? x.CurrentProvince.Id.ToString() : null, - CurrentDistrict = x.CurrentDistrict, - CurrentDistrictId = x.CurrentDistrict != null ? x.CurrentDistrict.Id.ToString() : null, - CurrentSubDistrict = x.CurrentSubDistrict, - CurrentSubDistrictId = x.CurrentSubDistrict != null ? x.CurrentSubDistrict.Id.ToString() : null, + CurrentProvince = x.CurrentProvinceName, + CurrentProvinceId = x.CurrentProvinceId != null ? x.CurrentProvinceId.ToString() : null, + CurrentDistrict = x.CurrentDistrictName, + CurrentDistrictId = x.CurrentDistrictId != null ? x.CurrentDistrictId.ToString() : null, + CurrentSubDistrict = x.CurrentSubDistrictName, + CurrentSubDistrictId = x.CurrentSubDistrictId != null ? x.CurrentSubDistrictId.ToString() : null, CurrentZipCode = x.CurrentZipCode, }) .FirstOrDefaultAsync(); @@ -184,21 +174,21 @@ namespace BMA.EHR.Recurit.Exam.Service.Services .Select(x => new CandidateAddressResponseItem { RegistAddress = x.RegistAddress, - RegistProvince = x.RegistProvince, - RegistProvinceId = x.RegistProvince != null ? x.RegistProvince.Id.ToString() : null, - RegistDistrict = x.RegistDistrict, - RegistDistrictId = x.RegistDistrict != null ? x.RegistDistrict.Id.ToString() : null, - RegistSubDistrict = x.RegistSubDistrict, - RegistSubDistrictId = x.RegistSubDistrict != null ? x.RegistSubDistrict.Id.ToString() : null, + RegistProvince = x.RegistProvinceName, + RegistProvinceId = x.RegistProvinceId != null ? x.RegistProvinceId.ToString() : null, + RegistDistrict = x.RegistDistrictName, + RegistDistrictId = x.RegistDistrictId != null ? x.RegistDistrictId.ToString() : null, + RegistSubDistrict = x.RegistSubDistrictName, + RegistSubDistrictId = x.RegistSubDistrictId != null ? x.RegistSubDistrictId.ToString() : null, RegistZipCode = x.RegistZipCode, RegistSame = x.RegistSame, CurrentAddress = x.CurrentAddress, - CurrentProvince = x.CurrentProvince, - CurrentProvinceId = x.CurrentProvince != null ? x.CurrentProvince.Id.ToString() : null, - CurrentDistrict = x.CurrentDistrict, - CurrentDistrictId = x.CurrentDistrict != null ? x.CurrentDistrict.Id.ToString() : null, - CurrentSubDistrict = x.CurrentSubDistrict, - CurrentSubDistrictId = x.CurrentSubDistrict != null ? x.CurrentSubDistrict.Id.ToString() : null, + CurrentProvince = x.CurrentProvinceName, + CurrentProvinceId = x.CurrentProvinceId != null ? x.CurrentProvinceId.ToString() : null, + CurrentDistrict = x.CurrentDistrictName, + CurrentDistrictId = x.CurrentDistrictId != null ? x.CurrentDistrictId.ToString() : null, + CurrentSubDistrict = x.CurrentSubDistrictName, + CurrentSubDistrictId = x.CurrentSubDistrictId != null ? x.CurrentSubDistrictId.ToString() : null, CurrentZipCode = x.CurrentZipCode, }) .FirstOrDefaultAsync(); @@ -226,20 +216,20 @@ namespace BMA.EHR.Recurit.Exam.Service.Services .Select(x => new CandidateFamilyResponseItem { Marry = x.Marry, - MarryPrefix = x.MarryPrefix, - MarryPrefixId = x.MarryPrefix != null ? x.MarryPrefix.Id.ToString() : null, + MarryPrefix = x.MarryPrefixName, + MarryPrefixId = x.MarryPrefixId != null ? x.MarryPrefixId.ToString() : null, MarryFirstName = x.MarryFirstName, MarryLastName = x.MarryLastName, MarryOccupation = x.MarryOccupation, MarryNationality = x.MarryNationality, - FatherPrefix = x.FatherPrefix, - FatherPrefixId = x.FatherPrefix != null ? x.FatherPrefix.Id.ToString() : null, + FatherPrefix = x.FatherPrefixName, + FatherPrefixId = x.FatherPrefixId != null ? x.FatherPrefixId.ToString() : null, FatherFirstName = x.FatherFirstName, FatherLastName = x.FatherLastName, FatherOccupation = x.FatherOccupation, FatherNationality = x.FatherNationality, - MotherPrefix = x.MotherPrefix, - MotherPrefixId = x.MotherPrefix != null ? x.MotherPrefix.Id.ToString() : null, + MotherPrefix = x.MotherPrefixName, + MotherPrefixId = x.MotherPrefixId != null ? x.MotherPrefixId.ToString() : null, MotherFirstName = x.MotherFirstName, MotherLastName = x.MotherLastName, MotherOccupation = x.MotherOccupation, @@ -254,20 +244,20 @@ namespace BMA.EHR.Recurit.Exam.Service.Services .Select(x => new CandidateFamilyResponseItem { Marry = x.Marry, - MarryPrefix = x.MarryPrefix, - MarryPrefixId = x.MarryPrefix != null ? x.MarryPrefix.Id.ToString() : null, + MarryPrefix = x.MarryPrefixName, + MarryPrefixId = x.MarryPrefixId != null ? x.MarryPrefixId.ToString() : null, MarryFirstName = x.MarryFirstName, MarryLastName = x.MarryLastName, MarryOccupation = x.MarryOccupation, MarryNationality = x.MarryNationality, - FatherPrefix = x.FatherPrefix, - FatherPrefixId = x.FatherPrefix != null ? x.FatherPrefix.Id.ToString() : null, + FatherPrefix = x.FatherPrefixName, + FatherPrefixId = x.FatherPrefixId != null ? x.FatherPrefixId.ToString() : null, FatherFirstName = x.FatherFirstName, FatherLastName = x.FatherLastName, FatherOccupation = x.FatherOccupation, FatherNationality = x.FatherNationality, - MotherPrefix = x.MotherPrefix, - MotherPrefixId = x.MotherPrefix != null ? x.MotherPrefix.Id.ToString() : null, + MotherPrefix = x.MotherPrefixName, + MotherPrefixId = x.MotherPrefixId != null ? x.MotherPrefixId.ToString() : null, MotherFirstName = x.MotherFirstName, MotherLastName = x.MotherLastName, MotherOccupation = x.MotherOccupation, @@ -382,7 +372,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Services throw new Exception(GlobalMessages.CandidateNotFound); return await _context.Educations.AsQueryable() - .Include(x => x.EducationLevel) .Where(x => x.Candidate == candidate) .OrderBy(d => d.DurationStart) .ToListAsync(); @@ -630,147 +619,160 @@ namespace BMA.EHR.Recurit.Exam.Service.Services if (updated.PrefixId != null) { - var prefix = await _context.Prefixes.AsQueryable() + var prefix = await _contextMetadata.Prefixes.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.PrefixId)); if (prefix == null) throw new Exception(GlobalMessages.PrefixNotFound); - candidate.Prefix = prefix; + candidate.PrefixId = prefix.Id; + candidate.PrefixName = prefix.Name; } if (updated.RelationshipId != null) { - var relationship = await _context.Relationships.AsQueryable() + var relationship = await _contextMetadata.Relationships.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.RelationshipId)); if (relationship == null) throw new Exception(GlobalMessages.RelationshipNotFound); - candidate.Relationship = relationship; + candidate.RelationshipId = relationship.Id; + candidate.RelationshipName = relationship.Name; } if (updated.CitizenProvinceId != null) { - var citizenProvince = await _context.Provinces.AsQueryable() + var citizenProvince = await _contextMetadata.Provinces.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.CitizenProvinceId)); if (citizenProvince == null) throw new Exception(GlobalMessages.ProvinceNotFound); - candidate.CitizenProvince = citizenProvince; + candidate.CitizenProvinceId = citizenProvince.Id; + candidate.CitizenProvinceName = citizenProvince.Name; } if (updated.CitizenDistrictId != null) { - var citizenDistrict = await _context.Districts.AsQueryable() + var citizenDistrict = await _contextMetadata.Districts.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.CitizenDistrictId)); if (citizenDistrict == null) throw new Exception(GlobalMessages.DistrictNotFound); - candidate.CitizenDistrict = citizenDistrict; + candidate.CitizenDistrictId = citizenDistrict.Id; + candidate.CitizenDistrictName = citizenDistrict.Name; } if (updated.RegistProvinceId != null) { - var registProvince = await _context.Provinces.AsQueryable() + var registProvince = await _contextMetadata.Provinces.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.RegistProvinceId)); if (registProvince == null) throw new Exception(GlobalMessages.ProvinceNotFound); - candidate.RegistProvince = registProvince; + candidate.RegistProvinceId = registProvince.Id; + candidate.RegistProvinceName = registProvince.Name; } if (updated.RegistDistrictId != null) { - var registDistrict = await _context.Districts.AsQueryable() + var registDistrict = await _contextMetadata.Districts.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.RegistDistrictId)); if (registDistrict == null) throw new Exception(GlobalMessages.DistrictNotFound); - candidate.RegistDistrict = registDistrict; + candidate.RegistDistrictId = registDistrict.Id; + candidate.RegistDistrictName = registDistrict.Name; } if (updated.RegistSubDistrictId != null) { - var registSubDistrict = await _context.SubDistricts.AsQueryable() + var registSubDistrict = await _contextMetadata.SubDistricts.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.RegistSubDistrictId)); if (registSubDistrict == null) throw new Exception(GlobalMessages.SubDistrictNotFound); - candidate.RegistSubDistrict = registSubDistrict; + candidate.RegistSubDistrictId = registSubDistrict.Id; + candidate.RegistSubDistrictName = registSubDistrict.Name; candidate.RegistZipCode = registSubDistrict.ZipCode; } if (updated.CurrentProvinceId != null) { - var currentProvince = await _context.Provinces.AsQueryable() + var currentProvince = await _contextMetadata.Provinces.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.CurrentProvinceId)); if (currentProvince == null) throw new Exception(GlobalMessages.ProvinceNotFound); - candidate.CurrentProvince = currentProvince; + candidate.CurrentProvinceId = currentProvince.Id; + candidate.CurrentProvinceName = currentProvince.Name; } if (updated.CurrentDistrictId != null) { - var currentDistrict = await _context.Districts.AsQueryable() + var currentDistrict = await _contextMetadata.Districts.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.CurrentDistrictId)); if (currentDistrict == null) throw new Exception(GlobalMessages.DistrictNotFound); - candidate.CurrentDistrict = currentDistrict; + candidate.CurrentDistrictId = currentDistrict.Id; + candidate.CurrentDistrictName = currentDistrict.Name; } if (updated.CurrentSubDistrictId != null) { - var currentSubDistrict = await _context.SubDistricts.AsQueryable() + var currentSubDistrict = await _contextMetadata.SubDistricts.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.CurrentSubDistrictId)); if (currentSubDistrict == null) throw new Exception(GlobalMessages.SubDistrictNotFound); - candidate.CurrentSubDistrict = currentSubDistrict; + candidate.CurrentSubDistrictId = currentSubDistrict.Id; + candidate.CurrentSubDistrictName = currentSubDistrict.Name; candidate.CurrentZipCode = currentSubDistrict.ZipCode; } if (updated.MarryPrefixId != null) { - var prefix = await _context.Prefixes.AsQueryable() + var prefix = await _contextMetadata.Prefixes.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.MarryPrefixId)); if (prefix == null) throw new Exception(GlobalMessages.PrefixNotFound); - candidate.MarryPrefix = prefix; + candidate.MarryPrefixId = prefix.Id; + candidate.MarryPrefixName = prefix.Name; } if (updated.FatherPrefixId != null) { - var prefix = await _context.Prefixes.AsQueryable() + var prefix = await _contextMetadata.Prefixes.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.FatherPrefixId)); if (prefix == null) throw new Exception(GlobalMessages.PrefixNotFound); - candidate.FatherPrefix = prefix; + candidate.FatherPrefixId = prefix.Id; + candidate.FatherPrefixName = prefix.Name; } if (updated.MotherPrefixId != null) { - var prefix = await _context.Prefixes.AsQueryable() + var prefix = await _contextMetadata.Prefixes.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.MotherPrefixId)); if (prefix == null) throw new Exception(GlobalMessages.PrefixNotFound); - candidate.MotherPrefix = prefix; + candidate.MotherPrefixId = prefix.Id; + candidate.MotherPrefixName = prefix.Name; } candidate.FirstName = updated.FirstName; @@ -824,46 +826,50 @@ namespace BMA.EHR.Recurit.Exam.Service.Services if (updated.PrefixId != null) { - var prefix = await _context.Prefixes.AsQueryable() + var prefix = await _contextMetadata.Prefixes.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.PrefixId)); if (prefix == null) throw new Exception(GlobalMessages.PrefixNotFound); - candidate.Prefix = prefix; + candidate.PrefixId = prefix.Id; + candidate.PrefixName = prefix.Name; } if (updated.RelationshipId != null) { - var relationship = await _context.Relationships.AsQueryable() + var relationship = await _contextMetadata.Relationships.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.RelationshipId)); if (relationship == null) throw new Exception(GlobalMessages.RelationshipNotFound); - candidate.Relationship = relationship; + candidate.RelationshipId = relationship.Id; + candidate.RelationshipName = relationship.Name; } if (updated.CitizenProvinceId != null) { - var citizenProvince = await _context.Provinces.AsQueryable() + var citizenProvince = await _contextMetadata.Provinces.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.CitizenProvinceId)); if (citizenProvince == null) throw new Exception(GlobalMessages.ProvinceNotFound); - candidate.CitizenProvince = citizenProvince; + candidate.CitizenProvinceId = citizenProvince.Id; + candidate.CitizenProvinceName = citizenProvince.Name; } if (updated.CitizenDistrictId != null) { - var citizenDistrict = await _context.Districts.AsQueryable() + var citizenDistrict = await _contextMetadata.Districts.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.CitizenDistrictId)); if (citizenDistrict == null) throw new Exception(GlobalMessages.DistrictNotFound); - candidate.CitizenDistrict = citizenDistrict; + candidate.CitizenDistrictId = citizenDistrict.Id; + candidate.CitizenDistrictName = citizenDistrict.Name; } candidate.FirstName = updated.FirstName; @@ -917,69 +923,75 @@ namespace BMA.EHR.Recurit.Exam.Service.Services if (updated.RegistProvinceId != null) { - var registProvince = await _context.Provinces.AsQueryable() + var registProvince = await _contextMetadata.Provinces.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.RegistProvinceId)); if (registProvince == null) throw new Exception(GlobalMessages.ProvinceNotFound); - candidate.RegistProvince = registProvince; + candidate.RegistProvinceId = registProvince.Id; + candidate.RegistProvinceName = registProvince.Name; } if (updated.RegistDistrictId != null) { - var registDistrict = await _context.Districts.AsQueryable() + var registDistrict = await _contextMetadata.Districts.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.RegistDistrictId)); if (registDistrict == null) throw new Exception(GlobalMessages.DistrictNotFound); - candidate.RegistDistrict = registDistrict; + candidate.RegistDistrictId = registDistrict.Id; + candidate.RegistDistrictName = registDistrict.Name; } if (updated.RegistSubDistrictId != null) { - var registSubDistrict = await _context.SubDistricts.AsQueryable() + var registSubDistrict = await _contextMetadata.SubDistricts.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.RegistSubDistrictId)); if (registSubDistrict == null) throw new Exception(GlobalMessages.SubDistrictNotFound); - candidate.RegistSubDistrict = registSubDistrict; + candidate.RegistSubDistrictId = registSubDistrict.Id; + candidate.RegistSubDistrictName = registSubDistrict.Name; candidate.RegistZipCode = registSubDistrict.ZipCode; } if (updated.CurrentProvinceId != null) { - var currentProvince = await _context.Provinces.AsQueryable() + var currentProvince = await _contextMetadata.Provinces.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.CurrentProvinceId)); if (currentProvince == null) throw new Exception(GlobalMessages.ProvinceNotFound); - candidate.CurrentProvince = currentProvince; + candidate.CurrentProvinceId = currentProvince.Id; + candidate.CurrentProvinceName = currentProvince.Name; } if (updated.CurrentDistrictId != null) { - var currentDistrict = await _context.Districts.AsQueryable() + var currentDistrict = await _contextMetadata.Districts.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.CurrentDistrictId)); if (currentDistrict == null) throw new Exception(GlobalMessages.DistrictNotFound); - candidate.CurrentDistrict = currentDistrict; + candidate.CurrentDistrictId = currentDistrict.Id; + candidate.CurrentDistrictName = currentDistrict.Name; } if (updated.CurrentSubDistrictId != null) { - var currentSubDistrict = await _context.SubDistricts.AsQueryable() + var currentSubDistrict = await _contextMetadata.SubDistricts.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.CurrentSubDistrictId)); if (currentSubDistrict == null) throw new Exception(GlobalMessages.SubDistrictNotFound); - candidate.CurrentSubDistrict = currentSubDistrict; + candidate.CurrentSubDistrictId = currentSubDistrict.Id; + candidate.CurrentSubDistrictName = currentSubDistrict.Name; candidate.CurrentZipCode = currentSubDistrict.ZipCode; } @@ -1002,35 +1014,38 @@ namespace BMA.EHR.Recurit.Exam.Service.Services if (updated.MarryPrefixId != null) { - var prefix = await _context.Prefixes.AsQueryable() + var prefix = await _contextMetadata.Prefixes.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.MarryPrefixId)); if (prefix == null) throw new Exception(GlobalMessages.PrefixNotFound); - candidate.MarryPrefix = prefix; + candidate.MarryPrefixId = prefix.Id; + candidate.MarryPrefixName = prefix.Name; } if (updated.FatherPrefixId != null) { - var prefix = await _context.Prefixes.AsQueryable() + var prefix = await _contextMetadata.Prefixes.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.FatherPrefixId)); if (prefix == null) throw new Exception(GlobalMessages.PrefixNotFound); - candidate.FatherPrefix = prefix; + candidate.FatherPrefixId = prefix.Id; + candidate.FatherPrefixName = prefix.Name; } if (updated.MotherPrefixId != null) { - var prefix = await _context.Prefixes.AsQueryable() + var prefix = await _contextMetadata.Prefixes.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.MotherPrefixId)); if (prefix == null) throw new Exception(GlobalMessages.PrefixNotFound); - candidate.MotherPrefix = prefix; + candidate.MotherPrefixId = prefix.Id; + candidate.MotherPrefixName = prefix.Name; } candidate.Marry = updated.Marry == null ? null : updated.Marry; @@ -1155,7 +1170,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services var candidate = await _context.Candidates.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(candidateId)); - var educationLevel = await _context.EducationLevels.AsQueryable() + var educationLevel = await _contextMetadata.EducationLevels.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.EducationLevelId)); if (educationLevel == null) @@ -1164,7 +1179,8 @@ namespace BMA.EHR.Recurit.Exam.Service.Services var education = new Education { Candidate = candidate, - EducationLevel = educationLevel, + EducationLevelId = educationLevel.Id, + EducationLevelName = educationLevel.Name, Major = updated.Major, Scores = updated.Scores, Name = updated.Name, @@ -1224,13 +1240,14 @@ namespace BMA.EHR.Recurit.Exam.Service.Services if (education == null) throw new Exception(GlobalMessages.EducationNotFound); - var educationLevel = await _context.EducationLevels.AsQueryable() + var educationLevel = await _contextMetadata.EducationLevels.AsQueryable() .FirstOrDefaultAsync(x => x.Id == Guid.Parse(updated.EducationLevelId)); if (educationLevel == null) throw new Exception(GlobalMessages.EducationLevelNotFound); - education.EducationLevel = educationLevel; + education.EducationLevelId = educationLevel.Id; + education.EducationLevelName = educationLevel.Name; education.Major = updated.Major; education.Scores = updated.Scores; education.Name = updated.Name; @@ -1416,7 +1433,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Services throw new Exception(GlobalMessages.ExamNotFound); var candidate = await _context.Candidates.AsQueryable() - .Include(x => x.Prefix) .Where(x => x.PeriodExam == exam && x.UserId == UserId) .FirstOrDefaultAsync(); @@ -1429,7 +1445,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Services throw new Exception(GlobalMessages.PositionExamNotFound); candidate = await _context.Candidates.AsQueryable() - .Include(x => x.Prefix) .Where(x => x.PeriodExam == exam && x.UserId == UserId && x.PositionExam == position) .FirstOrDefaultAsync(); } @@ -1441,7 +1456,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services { FirstName = candidate.FirstName, LastName = candidate.LastName, - Prefix = candidate.Prefix?.Name, + Prefix = candidate.PrefixName, CitizenId = candidate.CitizenId, ExamIdenNumber = candidate.ExamIdenNumber, SeatNumber = candidate.SeatNumber, diff --git a/Services/DistrictService.cs b/Services/DistrictService.cs deleted file mode 100644 index e939b95..0000000 --- a/Services/DistrictService.cs +++ /dev/null @@ -1,101 +0,0 @@ -using System.Security.Claims; -using BMA.EHR.Recurit.Exam.Service.Data; -using BMA.EHR.Recurit.Exam.Service.Models; -using Microsoft.EntityFrameworkCore; - -namespace BMA.EHR.Recurit.Exam.Service.Services -{ - public class DistrictService - { - #region " Fields " - - private readonly ApplicationDbContext _context; - private readonly IHttpContextAccessor _httpContextAccessor; - - #endregion - - #region " Constructor and Destructor " - - public DistrictService(ApplicationDbContext context, - IHttpContextAccessor httpContextAccessor) - { - _context = context; - _httpContextAccessor = httpContextAccessor; - } - - #endregion - - #region " Properties " - - private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; - - private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; - - #endregion - - #region " Methods " - - public async Task> GetsAsync(string provinceId, bool showAll = true) - { - if (showAll) - return await _context.Districts.AsQueryable() - .Where(x => x.Province.Id == Guid.Parse(provinceId)) - .OrderBy(d => d.Name) - .ToListAsync(); - else - return await _context.Districts.AsQueryable() - .Where(x => x.Province.Id == Guid.Parse(provinceId)) - .Where(p => p.IsActive) - .OrderBy(d => d.Name) - .ToListAsync(); - } - - public async Task GetByIdAsync(Guid id) - { - return await _context.Districts.FirstOrDefaultAsync(x => x.Id == id); - } - - public async Task UpdateAsync(Guid id, District updated) - { - var existData = await _context.Districts.FirstOrDefaultAsync(x => x.Id == id); - if (existData != null) - { - if (existData.Name != updated.Name) - { - existData.Name = updated.Name; - existData.LastUpdatedAt = DateTime.Now; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - } - - if (existData.IsActive != updated.IsActive) - { - existData.IsActive = updated.IsActive; - existData.LastUpdatedAt = DateTime.Now; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - } - - - await _context.SaveChangesAsync(); - } - } - - public async Task CreateAsync(District inserted, string provinceId) - { - var province = await _context.Provinces.FirstOrDefaultAsync(x => x.Id == Guid.Parse(provinceId)); - inserted.CreatedUserId = UserId ?? ""; - inserted.CreatedFullName = FullName ?? "System Administrator"; - inserted.CreatedAt = DateTime.Now; - inserted.LastUpdatedAt = DateTime.Now; - inserted.LastUpdateFullName = FullName ?? "System Administrator"; - inserted.LastUpdateUserId = UserId ?? ""; - inserted.Province = province; - await _context.Districts.AddAsync(inserted); - - await _context.SaveChangesAsync(); - } - - #endregion - } -} \ No newline at end of file diff --git a/Services/EducationLevelService.cs b/Services/EducationLevelService.cs deleted file mode 100644 index 9cc7d2a..0000000 --- a/Services/EducationLevelService.cs +++ /dev/null @@ -1,98 +0,0 @@ -using System.Security.Claims; -using BMA.EHR.Recurit.Exam.Service.Data; -using BMA.EHR.Recurit.Exam.Service.Models; -using Microsoft.EntityFrameworkCore; - -namespace BMA.EHR.Recurit.Exam.Service.Services -{ - public class EducationLevelService - { - #region " Fields " - - private readonly ApplicationDbContext _context; - private readonly IHttpContextAccessor _httpContextAccessor; - - #endregion - - #region " Constructor and Destructor " - - public EducationLevelService(ApplicationDbContext context, - IHttpContextAccessor httpContextAccessor) - { - _context = context; - _httpContextAccessor = httpContextAccessor; - } - - #endregion - - #region " Properties " - - private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; - - private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; - - #endregion - - #region " Methods " - - public async Task> GetsAsync(bool showAll = true) - { - if (showAll) - return await _context.EducationLevels.AsQueryable() - .OrderBy(d => d.Name) - .ToListAsync(); - else - return await _context.EducationLevels.AsQueryable() - .Where(p => p.IsActive) - .OrderBy(d => d.Name) - .ToListAsync(); - } - - public async Task GetByIdAsync(Guid id) - { - return await _context.EducationLevels.FirstOrDefaultAsync(x => x.Id == id); - } - - public async Task UpdateAsync(Guid id, EducationLevel updated) - { - var existData = await _context.EducationLevels.FirstOrDefaultAsync(x => x.Id == id); - if (existData != null) - { - if (existData.Name != updated.Name) - { - existData.Name = updated.Name; - existData.LastUpdatedAt = DateTime.Now; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - } - - if (existData.IsActive != updated.IsActive) - { - existData.IsActive = updated.IsActive; - existData.LastUpdatedAt = DateTime.Now; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - } - - - await _context.SaveChangesAsync(); - } - } - - public async Task CreateAsync(EducationLevel inserted) - { - inserted.CreatedUserId = UserId ?? ""; - inserted.CreatedFullName = FullName ?? "System Administrator"; - inserted.CreatedAt = DateTime.Now; - inserted.LastUpdatedAt = DateTime.Now; - inserted.LastUpdateFullName = FullName ?? "System Administrator"; - inserted.LastUpdateUserId = UserId ?? ""; - - await _context.EducationLevels.AddAsync(inserted); - - await _context.SaveChangesAsync(); - } - - #endregion - } -} diff --git a/Services/PeriodExamService.cs b/Services/PeriodExamService.cs index 529ae32..330e641 100644 --- a/Services/PeriodExamService.cs +++ b/Services/PeriodExamService.cs @@ -18,6 +18,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services #region " Fields " private readonly ApplicationDbContext _context; + private readonly MetadataDbContext _contextMetadata; private readonly IHttpContextAccessor _httpContextAccessor; private readonly MinIOService _minioService; @@ -26,10 +27,12 @@ namespace BMA.EHR.Recurit.Exam.Service.Services #region " Constructor and Destructor " public PeriodExamService(ApplicationDbContext context, + MetadataDbContext contextMetadata, IHttpContextAccessor httpContextAccessor, MinIOService minioService) { _context = context; + _contextMetadata = contextMetadata; _httpContextAccessor = httpContextAccessor; _minioService = minioService; } @@ -530,15 +533,33 @@ namespace BMA.EHR.Recurit.Exam.Service.Services if (status == "all") { - return await _context.Candidates.AsQueryable() + var candidate = await _context.Candidates.AsQueryable() + .Include(x => x.ProfileImg) .Where(x => x.PeriodExam == periodExam && x.Status != "register" && x.Status != "rejectRegister") .ToListAsync(); + var i = 0; + foreach (var item in candidate) + { + if (candidate[i].ProfileImg != null) + candidate[i].ProfileImg.Detail = _minioService.ImagesPath(candidate[i].ProfileImg.Id).Result; + i++; + } + return candidate; } else { - return await _context.Candidates.AsQueryable() + var candidate = await _context.Candidates.AsQueryable() + .Include(x => x.ProfileImg) .Where(x => x.PeriodExam == periodExam && x.Status == status) .ToListAsync(); + var i = 0; + foreach (var item in candidate) + { + if (candidate[i].ProfileImg != null) + candidate[i].ProfileImg.Detail = _minioService.ImagesPath(candidate[i].ProfileImg.Id).Result; + i++; + } + return candidate; } } @@ -548,18 +569,18 @@ namespace BMA.EHR.Recurit.Exam.Service.Services .Where(x => x.Id == Guid.Parse(candidateId)) .Select(x => new CandidateInformationResponseItem { - Prefix = x.Prefix, - PrefixId = x.Prefix != null ? x.Prefix.Id.ToString() : null, + Prefix = x.PrefixName, + PrefixId = x.PrefixId != null ? x.PrefixId.ToString() : null, FirstName = x.FirstName, LastName = x.LastName, Nationality = x.Nationality, DateOfBirth = x.DateOfBirth, - Relationship = x.Relationship, - RelationshipId = x.Relationship != null ? x.Relationship.Id.ToString() : null, - CitizenProvince = x.CitizenProvince, - CitizenProvinceId = x.CitizenProvince != null ? x.CitizenProvince.Id.ToString() : null, - CitizenDistrict = x.CitizenDistrict, - CitizenDistrictId = x.CitizenDistrict != null ? x.CitizenDistrict.Id.ToString() : null, + Relationship = x.RelationshipName, + RelationshipId = x.RelationshipId != null ? x.RelationshipId.ToString() : null, + CitizenProvince = x.CitizenProvinceName, + CitizenProvinceId = x.CitizenProvinceId != null ? x.CitizenProvinceId.ToString() : null, + CitizenDistrict = x.CitizenDistrictName, + CitizenDistrictId = x.CitizenDistrictId != null ? x.CitizenDistrictId.ToString() : null, CitizenDate = x.CitizenDate, Email = x.Email, CitizenId = x.CitizenId, @@ -602,21 +623,21 @@ namespace BMA.EHR.Recurit.Exam.Service.Services .Select(x => new CandidateAddressResponseItem { RegistAddress = x.RegistAddress, - RegistProvince = x.RegistProvince, - RegistProvinceId = x.RegistProvince != null ? x.RegistProvince.Id.ToString() : null, - RegistDistrict = x.RegistDistrict, - RegistDistrictId = x.RegistDistrict != null ? x.RegistDistrict.Id.ToString() : null, - RegistSubDistrict = x.RegistSubDistrict, - RegistSubDistrictId = x.RegistSubDistrict != null ? x.RegistSubDistrict.Id.ToString() : null, + RegistProvince = x.RegistProvinceName, + RegistProvinceId = x.RegistProvinceId != null ? x.RegistProvinceId.ToString() : null, + RegistDistrict = x.RegistDistrictName, + RegistDistrictId = x.RegistDistrictId != null ? x.RegistDistrictId.ToString() : null, + RegistSubDistrict = x.RegistSubDistrictName, + RegistSubDistrictId = x.RegistSubDistrictId != null ? x.RegistSubDistrictId.ToString() : null, RegistZipCode = x.RegistZipCode, RegistSame = x.RegistSame, CurrentAddress = x.CurrentAddress, - CurrentProvince = x.CurrentProvince, - CurrentProvinceId = x.CurrentProvince != null ? x.CurrentProvince.Id.ToString() : null, - CurrentDistrict = x.CurrentDistrict, - CurrentDistrictId = x.CurrentDistrict != null ? x.CurrentDistrict.Id.ToString() : null, - CurrentSubDistrict = x.CurrentSubDistrict, - CurrentSubDistrictId = x.CurrentSubDistrict != null ? x.CurrentSubDistrict.Id.ToString() : null, + CurrentProvince = x.CurrentProvinceName, + CurrentProvinceId = x.CurrentProvinceId != null ? x.CurrentProvinceId.ToString() : null, + CurrentDistrict = x.CurrentDistrictName, + CurrentDistrictId = x.CurrentDistrictId != null ? x.CurrentDistrictId.ToString() : null, + CurrentSubDistrict = x.CurrentSubDistrictName, + CurrentSubDistrictId = x.CurrentSubDistrictId != null ? x.CurrentSubDistrictId.ToString() : null, CurrentZipCode = x.CurrentZipCode, }) .FirstOrDefaultAsync(); @@ -629,20 +650,20 @@ namespace BMA.EHR.Recurit.Exam.Service.Services .Select(x => new CandidateFamilyResponseItem { Marry = x.Marry, - MarryPrefix = x.MarryPrefix, - MarryPrefixId = x.MarryPrefix != null ? x.MarryPrefix.Id.ToString() : null, + MarryPrefix = x.MarryPrefixName, + MarryPrefixId = x.MarryPrefixId != null ? x.MarryPrefixId.ToString() : null, MarryFirstName = x.MarryFirstName, MarryLastName = x.MarryLastName, MarryOccupation = x.MarryOccupation, MarryNationality = x.MarryNationality, - FatherPrefix = x.FatherPrefix, - FatherPrefixId = x.FatherPrefix != null ? x.FatherPrefix.Id.ToString() : null, + FatherPrefix = x.FatherPrefixName, + FatherPrefixId = x.FatherPrefixId != null ? x.FatherPrefixId.ToString() : null, FatherFirstName = x.FatherFirstName, FatherLastName = x.FatherLastName, FatherOccupation = x.FatherOccupation, FatherNationality = x.FatherNationality, - MotherPrefix = x.MotherPrefix, - MotherPrefixId = x.MotherPrefix != null ? x.MotherPrefix.Id.ToString() : null, + MotherPrefix = x.MotherPrefixName, + MotherPrefixId = x.MotherPrefixId != null ? x.MotherPrefixId.ToString() : null, MotherFirstName = x.MotherFirstName, MotherLastName = x.MotherLastName, MotherOccupation = x.MotherOccupation, @@ -654,7 +675,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Services public async Task> GetsAsyncEducation(string candidateId) { return await _context.Educations.AsQueryable() - .Include(x => x.EducationLevel) .Where(x => x.Id == Guid.Parse(candidateId)) .OrderBy(d => d.DurationStart) .ToListAsync(); diff --git a/Services/PrefixService.cs b/Services/PrefixService.cs deleted file mode 100644 index 39eb60e..0000000 --- a/Services/PrefixService.cs +++ /dev/null @@ -1,98 +0,0 @@ -using BMA.EHR.Recurit.Exam.Service.Data; -using BMA.EHR.Recurit.Exam.Service.Models; -using Microsoft.EntityFrameworkCore; -using System.Security.Claims; - -namespace BMA.EHR.Recurit.Exam.Service.Services -{ - public class PrefixService - { - #region " Fields " - - private readonly ApplicationDbContext _context; - private readonly IHttpContextAccessor _httpContextAccessor; - - #endregion - - #region " Constructor and Destructor " - - public PrefixService(ApplicationDbContext context, - IHttpContextAccessor httpContextAccessor) - { - _context = context; - _httpContextAccessor = httpContextAccessor; - } - - #endregion - - #region " Properties " - - private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; - - private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; - - #endregion - - #region " Methods " - - public async Task> GetsAsync(bool showAll = true) - { - if (showAll) - return await _context.Prefixes.AsQueryable() - .OrderBy(d => d.Name) - .ToListAsync(); - else - return await _context.Prefixes.AsQueryable() - .Where(p => p.IsActive) - .OrderBy(d => d.Name) - .ToListAsync(); - } - - public async Task GetByIdAsync(Guid id) - { - return await _context.Prefixes.FirstOrDefaultAsync(x => x.Id == id); - } - - public async Task UpdateAsync(Guid id, Prefix updated) - { - var existData = await _context.Prefixes.FirstOrDefaultAsync(x => x.Id == id); - if (existData != null) - { - if (existData.Name != updated.Name) - { - existData.Name = updated.Name; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - existData.LastUpdatedAt = DateTime.Now; - } - - if (existData.IsActive != updated.IsActive) - { - existData.IsActive = updated.IsActive; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - existData.LastUpdatedAt = DateTime.Now; - } - - - await _context.SaveChangesAsync(); - } - } - - public async Task CreateAsync(Prefix inserted) - { - inserted.CreatedUserId = UserId ?? ""; - inserted.CreatedFullName = FullName ?? "System Administrator"; - inserted.CreatedAt = DateTime.Now; - inserted.LastUpdatedAt = DateTime.Now; - inserted.LastUpdateFullName = FullName ?? "System Administrator"; - inserted.LastUpdateUserId = UserId ?? ""; - - await _context.Prefixes.AddAsync(inserted); - - await _context.SaveChangesAsync(); - } - - #endregion - } -} diff --git a/Services/ProvinceService.cs b/Services/ProvinceService.cs deleted file mode 100644 index c697d93..0000000 --- a/Services/ProvinceService.cs +++ /dev/null @@ -1,98 +0,0 @@ -using BMA.EHR.Recurit.Exam.Service.Data; -using BMA.EHR.Recurit.Exam.Service.Models; -using Microsoft.EntityFrameworkCore; -using System.Security.Claims; - -namespace BMA.EHR.Recurit.Exam.Service.Services -{ - public class ProvinceService - { - #region " Fields " - - private readonly ApplicationDbContext _context; - private readonly IHttpContextAccessor _httpContextAccessor; - - #endregion - - #region " Constructor and Destructor " - - public ProvinceService(ApplicationDbContext context, - IHttpContextAccessor httpContextAccessor) - { - _context = context; - _httpContextAccessor = httpContextAccessor; - } - - #endregion - - #region " Properties " - - private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; - - private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; - - #endregion - - #region " Methods " - - public async Task> GetsAsync(bool showAll = true) - { - if (showAll) - return await _context.Provinces.AsQueryable() - .OrderBy(d => d.Name) - .ToListAsync(); - else - return await _context.Provinces.AsQueryable() - .Where(p => p.IsActive) - .OrderBy(d => d.Name) - .ToListAsync(); - } - - public async Task GetByIdAsync(Guid id) - { - return await _context.Provinces.FirstOrDefaultAsync(x => x.Id == id); - } - - public async Task UpdateAsync(Guid id, Province updated) - { - var existData = await _context.Provinces.FirstOrDefaultAsync(x => x.Id == id); - if (existData != null) - { - if (existData.Name != updated.Name) - { - existData.Name = updated.Name; - existData.LastUpdatedAt = DateTime.Now; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - } - - if (existData.IsActive != updated.IsActive) - { - existData.IsActive = updated.IsActive; - existData.LastUpdatedAt = DateTime.Now; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - } - - - await _context.SaveChangesAsync(); - } - } - - public async Task CreateAsync(Province inserted) - { - inserted.CreatedUserId = UserId ?? ""; - inserted.CreatedFullName = FullName ?? "System Administrator"; - inserted.CreatedAt = DateTime.Now; - inserted.LastUpdatedAt = DateTime.Now; - inserted.LastUpdateFullName = FullName ?? "System Administrator"; - inserted.LastUpdateUserId = UserId ?? ""; - - await _context.Provinces.AddAsync(inserted); - - await _context.SaveChangesAsync(); - } - - #endregion - } -} \ No newline at end of file diff --git a/Services/RelationshipService.cs b/Services/RelationshipService.cs deleted file mode 100644 index 61b9a38..0000000 --- a/Services/RelationshipService.cs +++ /dev/null @@ -1,97 +0,0 @@ -using System.Security.Claims; -using BMA.EHR.Recurit.Exam.Service.Data; -using BMA.EHR.Recurit.Exam.Service.Models; -using Microsoft.EntityFrameworkCore; - -namespace BMA.EHR.Recurit.Exam.Service.Services; - -public class RelationshipService -{ - #region " Fields " - - private readonly ApplicationDbContext _context; - private readonly IHttpContextAccessor _httpContextAccessor; - - #endregion - - #region " Constructor and Destructor " - - public RelationshipService(ApplicationDbContext context, - IHttpContextAccessor httpContextAccessor) - { - _context = context; - _httpContextAccessor = httpContextAccessor; - } - - #endregion - - #region " Properties " - - private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; - - private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; - - #endregion - - #region " Methods " - - public async Task> GetsAsync(bool showAll = true) - { - if (showAll) - return await _context.Relationships.AsQueryable() - .OrderBy(d => d.Name) - .ToListAsync(); - else - return await _context.Relationships.AsQueryable() - .Where(p => p.IsActive) - .OrderBy(d => d.Name) - .ToListAsync(); - } - - public async Task GetByIdAsync(Guid id) - { - return await _context.Relationships.FirstOrDefaultAsync(x => x.Id == id); - } - - public async Task UpdateAsync(Guid id, Relationship updated) - { - var existData = await _context.Relationships.FirstOrDefaultAsync(x => x.Id == id); - if (existData != null) - { - if (existData.Name != updated.Name) - { - existData.Name = updated.Name; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - existData.LastUpdatedAt = DateTime.Now; - } - - if (existData.IsActive != updated.IsActive) - { - existData.IsActive = updated.IsActive; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - existData.LastUpdatedAt = DateTime.Now; - } - - - await _context.SaveChangesAsync(); - } - } - - public async Task CreateAsync(Relationship inserted) - { - inserted.CreatedUserId = UserId ?? ""; - inserted.CreatedFullName = FullName ?? "System Administrator"; - inserted.CreatedAt = DateTime.Now; - inserted.LastUpdatedAt = DateTime.Now; - inserted.LastUpdateFullName = FullName ?? "System Administrator"; - inserted.LastUpdateUserId = UserId ?? ""; - - await _context.Relationships.AddAsync(inserted); - - await _context.SaveChangesAsync(); - } - - #endregion -} \ No newline at end of file diff --git a/Services/ReligionService.cs b/Services/ReligionService.cs deleted file mode 100644 index a3226a6..0000000 --- a/Services/ReligionService.cs +++ /dev/null @@ -1,98 +0,0 @@ -using System.Security.Claims; -using BMA.EHR.Recurit.Exam.Service.Data; -using BMA.EHR.Recurit.Exam.Service.Models; -using Microsoft.EntityFrameworkCore; - -namespace BMA.EHR.Recurit.Exam.Service.Services -{ - public class ReligionService - { - #region " Fields " - - private readonly ApplicationDbContext _context; - private readonly IHttpContextAccessor _httpContextAccessor; - - #endregion - - #region " Constructor and Destructor " - - public ReligionService(ApplicationDbContext context, - IHttpContextAccessor httpContextAccessor) - { - _context = context; - _httpContextAccessor = httpContextAccessor; - } - - #endregion - - #region " Properties " - - private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; - - private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; - - #endregion - - #region " Methods " - - public async Task> GetsAsync(bool showAll = true) - { - if (showAll) - return await _context.Religions.AsQueryable() - .OrderBy(d => d.Name) - .ToListAsync(); - else - return await _context.Religions.AsQueryable() - .Where(p => p.IsActive) - .OrderBy(d => d.Name) - .ToListAsync(); - } - - public async Task GetByIdAsync(Guid id) - { - return await _context.Religions.FirstOrDefaultAsync(x => x.Id == id); - } - - public async Task UpdateAsync(Guid id, Religion updated) - { - var existData = await _context.Religions.FirstOrDefaultAsync(x => x.Id == id); - if (existData != null) - { - if (existData.Name != updated.Name) - { - existData.Name = updated.Name; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - existData.LastUpdatedAt = DateTime.Now; - } - - if (existData.IsActive != updated.IsActive) - { - existData.IsActive = updated.IsActive; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - existData.LastUpdatedAt = DateTime.Now; - } - - - await _context.SaveChangesAsync(); - } - } - - public async Task CreateAsync(Religion inserted) - { - inserted.CreatedUserId = UserId ?? ""; - inserted.CreatedFullName = FullName ?? "System Administrator"; - inserted.CreatedAt = DateTime.Now; - inserted.LastUpdatedAt = DateTime.Now; - inserted.LastUpdateFullName = FullName ?? "System Administrator"; - inserted.LastUpdateUserId = UserId ?? ""; - - await _context.Religions.AddAsync(inserted); - - await _context.SaveChangesAsync(); - } - - #endregion - } -} diff --git a/Services/SubDistrictService.cs b/Services/SubDistrictService.cs deleted file mode 100644 index 5f395aa..0000000 --- a/Services/SubDistrictService.cs +++ /dev/null @@ -1,119 +0,0 @@ -using System.Collections.Immutable; -using System.Security.Claims; -using BMA.EHR.Extensions; -using BMA.EHR.Recurit.Exam.Service.Data; -using BMA.EHR.Recurit.Exam.Service.Models; -using Microsoft.EntityFrameworkCore; -using Newtonsoft.Json; - -namespace BMA.EHR.Recurit.Exam.Service.Services -{ - public class SubDistrictService - { - #region " Fields " - - private readonly ApplicationDbContext _context; - private readonly IHttpContextAccessor _httpContextAccessor; - - #endregion - - #region " Constructor and Destructor " - - public SubDistrictService(ApplicationDbContext context, - IHttpContextAccessor httpContextAccessor) - { - _context = context; - _httpContextAccessor = httpContextAccessor; - } - - #endregion - - #region " Properties " - - private string? UserId => _httpContextAccessor?.HttpContext?.User?.FindFirst(ClaimTypes.NameIdentifier)?.Value; - - private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value; - - #endregion - - #region " Methods " - - public async Task> GetsAsync(string districtId, bool showAll = true) - { - if (showAll) - return await _context.SubDistricts.AsQueryable() - .Include(d => d.District) - .Where(x => x.District.Id == Guid.Parse(districtId)) - .OrderBy(d => d.Name) - .ToListAsync(); - else - return await _context.SubDistricts.AsQueryable() - .Include(d => d.District) - .Where(x => x.District.Id == Guid.Parse(districtId)) - .Where(p => p.IsActive) - .OrderBy(d => d.Name) - .ToListAsync(); - } - - public async Task GetByIdAsync(Guid id) - { - return await _context.SubDistricts.AsQueryable() - .Include(d => d.District) - .FirstOrDefaultAsync(x => x.Id == id); - } - - public async Task UpdateAsync(Guid id, SubDistrict updated) - { - var existData = await _context.SubDistricts.FirstOrDefaultAsync(x => x.Id == id); - if (existData != null) - { - // if (!existData.Compare(updated)) - // { - // existData.Name = updated.Name; - // existData.ZipCode = updated.ZipCode; - // existData.IsActive = updated.IsActive; - // existData.LastUpdatedAt = DateTime.Now; - // existData.LastUpdateUserId = UserId ?? ""; - // existData.LastUpdateFullName = FullName ?? ""; - - // await _context.SaveChangesAsync(); - // } - if (existData.Name != updated.Name || existData.ZipCode != updated.ZipCode) - { - existData.Name = updated.Name; - existData.ZipCode = updated.ZipCode; - existData.LastUpdatedAt = DateTime.Now; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - } - - if (existData.IsActive != updated.IsActive) - { - existData.IsActive = updated.IsActive; - existData.LastUpdatedAt = DateTime.Now; - existData.LastUpdateUserId = UserId ?? ""; - existData.LastUpdateFullName = FullName ?? ""; - } - await _context.SaveChangesAsync(); - } - } - - public async Task CreateAsync(SubDistrict inserted, string districtId) - { - var district = await _context.Districts.FirstOrDefaultAsync(x => x.Id == Guid.Parse(districtId)); - inserted.CreatedUserId = UserId ?? ""; - inserted.CreatedFullName = FullName ?? "System Administrator"; - inserted.CreatedAt = DateTime.Now; - inserted.LastUpdatedAt = DateTime.Now; - inserted.LastUpdateFullName = FullName ?? "System Administrator"; - inserted.LastUpdateUserId = UserId ?? ""; - inserted.District = district; - - await _context.SubDistricts.AddAsync(inserted); - - await _context.SaveChangesAsync(); - } - - #endregion - } -} \ No newline at end of file diff --git a/appsettings.Development.json b/appsettings.Development.json index 13dd374..6d26054 100644 --- a/appsettings.Development.json +++ b/appsettings.Development.json @@ -14,7 +14,9 @@ "AllowedHosts": "*", "ConnectionStrings": { "MongoConnection": "mongodb://127.0.0.1:27017", - "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + // "MetadataConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "MetadataConnection": "server=192.168.1.9;user=root;password=adminVM123;database=bma_ehr;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", diff --git a/appsettings.json b/appsettings.json index 0486514..22db589 100644 --- a/appsettings.json +++ b/appsettings.json @@ -14,7 +14,9 @@ "AllowedHosts": "*", "ConnectionStrings": { "MongoConnection": "mongodb://admin:adminVM123@127.0.0.1:27017", - "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + // "MetadataConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "MetadataConnection": "server=192.168.1.9;user=root;password=adminVM123;database=bma_ehr;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", diff --git a/bin/Debug/net7.0/appsettings.Development.json b/bin/Debug/net7.0/appsettings.Development.json index 13dd374..6d26054 100644 --- a/bin/Debug/net7.0/appsettings.Development.json +++ b/bin/Debug/net7.0/appsettings.Development.json @@ -14,7 +14,9 @@ "AllowedHosts": "*", "ConnectionStrings": { "MongoConnection": "mongodb://127.0.0.1:27017", - "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + // "MetadataConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "MetadataConnection": "server=192.168.1.9;user=root;password=adminVM123;database=bma_ehr;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", diff --git a/bin/Debug/net7.0/appsettings.json b/bin/Debug/net7.0/appsettings.json index 0486514..22db589 100644 --- a/bin/Debug/net7.0/appsettings.json +++ b/bin/Debug/net7.0/appsettings.json @@ -14,7 +14,9 @@ "AllowedHosts": "*", "ConnectionStrings": { "MongoConnection": "mongodb://admin:adminVM123@127.0.0.1:27017", - "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "DefaultConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr_exam;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;", + // "MetadataConnection": "server=127.0.0.1;user=root;password=P@ssw0rd;port=3308;database=bma_ehr;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" + "MetadataConnection": "server=192.168.1.9;user=root;password=adminVM123;database=bma_ehr;Convert Zero Datetime=True;Allow User Variables=true;Pooling=True;" }, "Jwt": { "Key": "HP-FnQMUj9msHMSD3T9HtdEnphAKoCJLEl85CIqROFI", diff --git a/obj/Debug/net7.0/project.razor.json b/obj/Debug/net7.0/project.razor.json index 2607eda..1d362da 100644 --- a/obj/Debug/net7.0/project.razor.json +++ b/obj/Debug/net7.0/project.razor.json @@ -13,7 +13,7 @@ "ProjectWorkspaceState": { "TagHelpers": [ { - "HashCode": 647969669, + "HashCode": 131942295, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeRouteView", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -97,7 +97,7 @@ } }, { - "HashCode": -1341118416, + "HashCode": -1515177245, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeRouteView", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -182,7 +182,7 @@ } }, { - "HashCode": -326444694, + "HashCode": -155650522, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeRouteView.NotAuthorized", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -215,7 +215,7 @@ } }, { - "HashCode": 1063349541, + "HashCode": 922263027, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeRouteView.NotAuthorized", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -249,7 +249,7 @@ } }, { - "HashCode": -893072020, + "HashCode": -1164923842, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeRouteView.Authorizing", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -270,7 +270,7 @@ } }, { - "HashCode": -704439573, + "HashCode": 130494115, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeRouteView.Authorizing", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -292,7 +292,7 @@ } }, { - "HashCode": -828498724, + "HashCode": -1204667715, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeView", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -397,7 +397,7 @@ } }, { - "HashCode": 144003532, + "HashCode": -1285058305, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeView", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -503,7 +503,7 @@ } }, { - "HashCode": -345998789, + "HashCode": 971209997, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeView.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -536,7 +536,7 @@ } }, { - "HashCode": 1850999354, + "HashCode": 1525838941, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeView.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -570,7 +570,7 @@ } }, { - "HashCode": -297937320, + "HashCode": -1264122975, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeView.NotAuthorized", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -603,7 +603,7 @@ } }, { - "HashCode": 944243213, + "HashCode": 1943119866, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeView.NotAuthorized", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -637,7 +637,7 @@ } }, { - "HashCode": -661565899, + "HashCode": -426783754, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeView.Authorized", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -670,7 +670,7 @@ } }, { - "HashCode": -697214578, + "HashCode": 868977418, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeView.Authorized", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -704,7 +704,7 @@ } }, { - "HashCode": 14851873, + "HashCode": -180495884, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeView.Authorizing", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -725,7 +725,7 @@ } }, { - "HashCode": -1874199229, + "HashCode": -1813993770, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.AuthorizeView.Authorizing", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -747,7 +747,7 @@ } }, { - "HashCode": 1062143687, + "HashCode": 811048626, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Authorization.CascadingAuthenticationState", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -778,7 +778,7 @@ } }, { - "HashCode": 878460350, + "HashCode": 501013228, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Authorization.CascadingAuthenticationState", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -810,7 +810,7 @@ } }, { - "HashCode": -1160235550, + "HashCode": -842778144, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.CascadingAuthenticationState.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -831,7 +831,7 @@ } }, { - "HashCode": 252953785, + "HashCode": -732121866, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Authorization.CascadingAuthenticationState.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Authorization", @@ -853,7 +853,7 @@ } }, { - "HashCode": 1792004153, + "HashCode": -877578614, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.CascadingValue", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -928,7 +928,7 @@ } }, { - "HashCode": 774255141, + "HashCode": 1243981071, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.CascadingValue", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1004,7 +1004,7 @@ } }, { - "HashCode": -1129585590, + "HashCode": -1509439479, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.CascadingValue.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1025,7 +1025,7 @@ } }, { - "HashCode": -930419578, + "HashCode": 944011294, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.CascadingValue.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1047,7 +1047,7 @@ } }, { - "HashCode": -272840824, + "HashCode": 186682339, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.DynamicComponent", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1089,7 +1089,7 @@ } }, { - "HashCode": -2125403024, + "HashCode": -712962971, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.DynamicComponent", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1132,7 +1132,7 @@ } }, { - "HashCode": 1520529653, + "HashCode": 2028625728, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.LayoutView", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1174,7 +1174,7 @@ } }, { - "HashCode": -1840167921, + "HashCode": 1085747895, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.LayoutView", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1217,7 +1217,7 @@ } }, { - "HashCode": 1045249387, + "HashCode": 1274713345, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.LayoutView.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1238,7 +1238,7 @@ } }, { - "HashCode": 1035192847, + "HashCode": -1945168131, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.LayoutView.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1260,7 +1260,7 @@ } }, { - "HashCode": -655976041, + "HashCode": -1188550874, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.RouteView", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1302,7 +1302,7 @@ } }, { - "HashCode": -1321583546, + "HashCode": -1170463131, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.RouteView", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1345,7 +1345,7 @@ } }, { - "HashCode": 1255568955, + "HashCode": 658833250, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Routing.Router", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1453,7 +1453,7 @@ } }, { - "HashCode": 1098369198, + "HashCode": -2026445451, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Routing.Router", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1562,7 +1562,7 @@ } }, { - "HashCode": 1670595601, + "HashCode": 957175444, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Routing.Router.NotFound", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1583,7 +1583,7 @@ } }, { - "HashCode": -319048449, + "HashCode": -1458503028, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Routing.Router.NotFound", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1605,7 +1605,7 @@ } }, { - "HashCode": 1966462032, + "HashCode": 1316806541, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Routing.Router.Found", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1638,7 +1638,7 @@ } }, { - "HashCode": -481635806, + "HashCode": -619479579, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Routing.Router.Found", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1672,7 +1672,7 @@ } }, { - "HashCode": -792321918, + "HashCode": 1282280652, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Routing.Router.Navigating", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1693,7 +1693,7 @@ } }, { - "HashCode": 1706703662, + "HashCode": -494176058, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Routing.Router.Navigating", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -1715,7 +1715,7 @@ } }, { - "HashCode": -2025532485, + "HashCode": 759059355, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.DataAnnotationsValidator", "AssemblyName": "Microsoft.AspNetCore.Components.Forms", @@ -1734,7 +1734,7 @@ } }, { - "HashCode": -354517268, + "HashCode": -1997992787, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.DataAnnotationsValidator", "AssemblyName": "Microsoft.AspNetCore.Components.Forms", @@ -1754,7 +1754,7 @@ } }, { - "HashCode": -312942934, + "HashCode": -319966644, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.EditForm", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -1859,7 +1859,7 @@ } }, { - "HashCode": 1184776969, + "HashCode": 927267547, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.EditForm", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -1965,7 +1965,7 @@ } }, { - "HashCode": -1030948635, + "HashCode": -1222152580, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Forms.EditForm.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -1998,7 +1998,7 @@ } }, { - "HashCode": 1997433669, + "HashCode": 509469037, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Forms.EditForm.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -2032,7 +2032,7 @@ } }, { - "HashCode": -885963162, + "HashCode": 733997150, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputCheckbox", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -2104,7 +2104,7 @@ } }, { - "HashCode": 494605879, + "HashCode": 1545694687, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputCheckbox", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -2177,7 +2177,7 @@ } }, { - "HashCode": -1989094121, + "HashCode": -925132655, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputDate", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -2285,7 +2285,7 @@ } }, { - "HashCode": -1302067220, + "HashCode": -480566375, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputDate", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -2394,7 +2394,7 @@ } }, { - "HashCode": -1837702211, + "HashCode": -393533779, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputFile", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -2436,7 +2436,7 @@ } }, { - "HashCode": -1551368324, + "HashCode": -349025702, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputFile", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -2479,7 +2479,7 @@ } }, { - "HashCode": -841765516, + "HashCode": 223909708, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputNumber", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -2576,7 +2576,7 @@ } }, { - "HashCode": -447068352, + "HashCode": 951108463, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputNumber", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -2674,7 +2674,7 @@ } }, { - "HashCode": -1081299974, + "HashCode": -579743099, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputRadio", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -2738,7 +2738,7 @@ } }, { - "HashCode": -270423854, + "HashCode": -654479797, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputRadio", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -2803,7 +2803,7 @@ } }, { - "HashCode": -2002776169, + "HashCode": 1027777413, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputRadioGroup", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -2911,7 +2911,7 @@ } }, { - "HashCode": 223780196, + "HashCode": 1924217485, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputRadioGroup", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3020,7 +3020,7 @@ } }, { - "HashCode": -1205813519, + "HashCode": -1302853822, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Forms.InputRadioGroup.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3041,7 +3041,7 @@ } }, { - "HashCode": 1084211415, + "HashCode": -1082564081, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Forms.InputRadioGroup.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3063,7 +3063,7 @@ } }, { - "HashCode": 1703768682, + "HashCode": 1785470207, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputSelect", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3161,7 +3161,7 @@ } }, { - "HashCode": 1689482661, + "HashCode": -1692736897, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputSelect", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3260,7 +3260,7 @@ } }, { - "HashCode": 454397021, + "HashCode": 1038144812, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Forms.InputSelect.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3281,7 +3281,7 @@ } }, { - "HashCode": -305772025, + "HashCode": -1259001371, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Forms.InputSelect.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3303,7 +3303,7 @@ } }, { - "HashCode": -841693436, + "HashCode": -1870246706, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputText", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3375,7 +3375,7 @@ } }, { - "HashCode": 588584153, + "HashCode": -1146344849, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputText", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3448,7 +3448,7 @@ } }, { - "HashCode": -1998256007, + "HashCode": -976409323, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputTextArea", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3520,7 +3520,7 @@ } }, { - "HashCode": -2001097870, + "HashCode": -974169149, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.InputTextArea", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3593,7 +3593,7 @@ } }, { - "HashCode": -1425347559, + "HashCode": 503259131, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.ValidationMessage", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3647,7 +3647,7 @@ } }, { - "HashCode": 750662510, + "HashCode": -1865194898, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.ValidationMessage", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3702,7 +3702,7 @@ } }, { - "HashCode": -1301567814, + "HashCode": -203873392, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.ValidationSummary", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3743,7 +3743,7 @@ } }, { - "HashCode": 1450806614, + "HashCode": 832959732, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Forms.ValidationSummary", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3785,7 +3785,7 @@ } }, { - "HashCode": -1292470664, + "HashCode": -1376560292, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Routing.FocusOnNavigate", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3826,7 +3826,7 @@ } }, { - "HashCode": -1773746567, + "HashCode": -1329412700, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Routing.FocusOnNavigate", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3868,7 +3868,7 @@ } }, { - "HashCode": -1956636377, + "HashCode": 37742654, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Routing.NavigationLock", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3910,7 +3910,7 @@ } }, { - "HashCode": -1184401371, + "HashCode": -120020469, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Routing.NavigationLock", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -3953,7 +3953,7 @@ } }, { - "HashCode": -1017334099, + "HashCode": -253955447, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Routing.NavLink", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4016,7 +4016,7 @@ } }, { - "HashCode": -1301405733, + "HashCode": -296420847, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Routing.NavLink", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4080,7 +4080,7 @@ } }, { - "HashCode": 1618040694, + "HashCode": 947609576, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Routing.NavLink.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4101,7 +4101,7 @@ } }, { - "HashCode": 697197977, + "HashCode": -613910142, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Routing.NavLink.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4123,7 +4123,7 @@ } }, { - "HashCode": -1439453289, + "HashCode": -836603824, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Web.HeadContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4155,7 +4155,7 @@ } }, { - "HashCode": 1605896387, + "HashCode": -290135045, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Web.HeadContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4188,7 +4188,7 @@ } }, { - "HashCode": 1749812712, + "HashCode": -134134487, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.HeadContent.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4209,7 +4209,7 @@ } }, { - "HashCode": -1723493617, + "HashCode": 1631318971, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.HeadContent.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4231,7 +4231,7 @@ } }, { - "HashCode": 1809131489, + "HashCode": 1554951892, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Web.HeadOutlet", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4250,7 +4250,7 @@ } }, { - "HashCode": -719696271, + "HashCode": -455822297, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Web.HeadOutlet", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4270,7 +4270,7 @@ } }, { - "HashCode": 1083693571, + "HashCode": 1821336571, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Web.PageTitle", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4302,7 +4302,7 @@ } }, { - "HashCode": 689241997, + "HashCode": 1721961414, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Web.PageTitle", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4335,7 +4335,7 @@ } }, { - "HashCode": 240516340, + "HashCode": -1396500327, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.PageTitle.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4356,7 +4356,7 @@ } }, { - "HashCode": 621742876, + "HashCode": 657904210, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.PageTitle.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4378,7 +4378,7 @@ } }, { - "HashCode": 1658303978, + "HashCode": 1772155368, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Web.ErrorBoundary", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4441,7 +4441,7 @@ } }, { - "HashCode": 75892397, + "HashCode": 1705423847, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Web.ErrorBoundary", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4505,7 +4505,7 @@ } }, { - "HashCode": -661165146, + "HashCode": -426525169, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.ErrorBoundary.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4526,7 +4526,7 @@ } }, { - "HashCode": 503014449, + "HashCode": -1551366173, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.ErrorBoundary.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4548,7 +4548,7 @@ } }, { - "HashCode": 1276440874, + "HashCode": 546993047, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.ErrorBoundary.ErrorContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4581,7 +4581,7 @@ } }, { - "HashCode": 1591630098, + "HashCode": -1748465086, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.ErrorBoundary.ErrorContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4615,7 +4615,7 @@ } }, { - "HashCode": 1340306302, + "HashCode": -2041530156, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4747,7 +4747,7 @@ } }, { - "HashCode": -1773610185, + "HashCode": -444317009, "Kind": "Components.Component", "Name": "Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4880,7 +4880,7 @@ } }, { - "HashCode": -1117785838, + "HashCode": -113062269, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4913,7 +4913,7 @@ } }, { - "HashCode": 1494874170, + "HashCode": 1907083715, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize.ChildContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4947,7 +4947,7 @@ } }, { - "HashCode": -698218170, + "HashCode": 1119794266, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize.ItemContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -4980,7 +4980,7 @@ } }, { - "HashCode": -1856626526, + "HashCode": -689346891, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize.ItemContent", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -5014,7 +5014,7 @@ } }, { - "HashCode": 1110234065, + "HashCode": 912141205, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize.Placeholder", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -5047,7 +5047,7 @@ } }, { - "HashCode": 1390907545, + "HashCode": 784734568, "Kind": "Components.ChildContent", "Name": "Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize.Placeholder", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -5081,7 +5081,7 @@ } }, { - "HashCode": 1915314792, + "HashCode": 1456273179, "Kind": "Components.EventHandler", "Name": "onfocus", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -5164,7 +5164,7 @@ } }, { - "HashCode": 729362466, + "HashCode": -1787837203, "Kind": "Components.EventHandler", "Name": "onblur", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -5247,7 +5247,7 @@ } }, { - "HashCode": -445017255, + "HashCode": -1617276838, "Kind": "Components.EventHandler", "Name": "onfocusin", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -5330,7 +5330,7 @@ } }, { - "HashCode": 565977692, + "HashCode": 335252289, "Kind": "Components.EventHandler", "Name": "onfocusout", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -5413,7 +5413,7 @@ } }, { - "HashCode": 776023486, + "HashCode": -1349253596, "Kind": "Components.EventHandler", "Name": "onmouseover", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -5496,7 +5496,7 @@ } }, { - "HashCode": 760356127, + "HashCode": -574948252, "Kind": "Components.EventHandler", "Name": "onmouseout", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -5579,7 +5579,7 @@ } }, { - "HashCode": 1596313370, + "HashCode": -2050394280, "Kind": "Components.EventHandler", "Name": "onmouseleave", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -5662,7 +5662,7 @@ } }, { - "HashCode": 485353116, + "HashCode": 1769245196, "Kind": "Components.EventHandler", "Name": "onmouseenter", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -5745,7 +5745,7 @@ } }, { - "HashCode": -1371084849, + "HashCode": -2077553938, "Kind": "Components.EventHandler", "Name": "onmousemove", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -5828,7 +5828,7 @@ } }, { - "HashCode": -2086820666, + "HashCode": 386461930, "Kind": "Components.EventHandler", "Name": "onmousedown", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -5911,7 +5911,7 @@ } }, { - "HashCode": 606490432, + "HashCode": -332824758, "Kind": "Components.EventHandler", "Name": "onmouseup", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -5994,7 +5994,7 @@ } }, { - "HashCode": -1820766033, + "HashCode": -1469221450, "Kind": "Components.EventHandler", "Name": "onclick", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -6077,7 +6077,7 @@ } }, { - "HashCode": 330114883, + "HashCode": 131375946, "Kind": "Components.EventHandler", "Name": "ondblclick", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -6160,7 +6160,7 @@ } }, { - "HashCode": -2125171926, + "HashCode": 2118871787, "Kind": "Components.EventHandler", "Name": "onwheel", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -6243,7 +6243,7 @@ } }, { - "HashCode": -1339157130, + "HashCode": 660053158, "Kind": "Components.EventHandler", "Name": "onmousewheel", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -6326,7 +6326,7 @@ } }, { - "HashCode": -1452127196, + "HashCode": 1473574464, "Kind": "Components.EventHandler", "Name": "oncontextmenu", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -6409,7 +6409,7 @@ } }, { - "HashCode": 1741328582, + "HashCode": -734910884, "Kind": "Components.EventHandler", "Name": "ondrag", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -6492,7 +6492,7 @@ } }, { - "HashCode": -1869746366, + "HashCode": -1722362199, "Kind": "Components.EventHandler", "Name": "ondragend", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -6575,7 +6575,7 @@ } }, { - "HashCode": -1802495753, + "HashCode": -988776681, "Kind": "Components.EventHandler", "Name": "ondragenter", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -6658,7 +6658,7 @@ } }, { - "HashCode": -1433735782, + "HashCode": 88766959, "Kind": "Components.EventHandler", "Name": "ondragleave", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -6741,7 +6741,7 @@ } }, { - "HashCode": 1633733213, + "HashCode": 880254731, "Kind": "Components.EventHandler", "Name": "ondragover", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -6824,7 +6824,7 @@ } }, { - "HashCode": 2029143303, + "HashCode": -602630233, "Kind": "Components.EventHandler", "Name": "ondragstart", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -6907,7 +6907,7 @@ } }, { - "HashCode": 1845087941, + "HashCode": -1012666335, "Kind": "Components.EventHandler", "Name": "ondrop", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -6990,7 +6990,7 @@ } }, { - "HashCode": 1326019903, + "HashCode": 2105943272, "Kind": "Components.EventHandler", "Name": "onkeydown", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -7073,7 +7073,7 @@ } }, { - "HashCode": 1307911311, + "HashCode": -1446989526, "Kind": "Components.EventHandler", "Name": "onkeyup", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -7156,7 +7156,7 @@ } }, { - "HashCode": -1352535387, + "HashCode": -2005737996, "Kind": "Components.EventHandler", "Name": "onkeypress", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -7239,7 +7239,7 @@ } }, { - "HashCode": -1144357031, + "HashCode": 522162233, "Kind": "Components.EventHandler", "Name": "onchange", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -7322,7 +7322,7 @@ } }, { - "HashCode": -347006567, + "HashCode": -378401887, "Kind": "Components.EventHandler", "Name": "oninput", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -7405,7 +7405,7 @@ } }, { - "HashCode": 1783568828, + "HashCode": -1452421544, "Kind": "Components.EventHandler", "Name": "oninvalid", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -7488,7 +7488,7 @@ } }, { - "HashCode": 1474668158, + "HashCode": -1447507628, "Kind": "Components.EventHandler", "Name": "onreset", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -7571,7 +7571,7 @@ } }, { - "HashCode": 977351782, + "HashCode": 1521632048, "Kind": "Components.EventHandler", "Name": "onselect", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -7654,7 +7654,7 @@ } }, { - "HashCode": 1775873002, + "HashCode": 1737110346, "Kind": "Components.EventHandler", "Name": "onselectstart", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -7737,7 +7737,7 @@ } }, { - "HashCode": 1600708654, + "HashCode": -1084266360, "Kind": "Components.EventHandler", "Name": "onselectionchange", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -7820,7 +7820,7 @@ } }, { - "HashCode": 907092674, + "HashCode": 947607366, "Kind": "Components.EventHandler", "Name": "onsubmit", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -7903,7 +7903,7 @@ } }, { - "HashCode": 656240729, + "HashCode": 782771305, "Kind": "Components.EventHandler", "Name": "onbeforecopy", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -7986,7 +7986,7 @@ } }, { - "HashCode": 1006629699, + "HashCode": -1601073341, "Kind": "Components.EventHandler", "Name": "onbeforecut", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -8069,7 +8069,7 @@ } }, { - "HashCode": 1774884248, + "HashCode": -569543289, "Kind": "Components.EventHandler", "Name": "onbeforepaste", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -8152,7 +8152,7 @@ } }, { - "HashCode": -1723728822, + "HashCode": -2125996332, "Kind": "Components.EventHandler", "Name": "oncopy", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -8235,7 +8235,7 @@ } }, { - "HashCode": -1648772540, + "HashCode": -1451747653, "Kind": "Components.EventHandler", "Name": "oncut", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -8318,7 +8318,7 @@ } }, { - "HashCode": 1766696391, + "HashCode": -436690455, "Kind": "Components.EventHandler", "Name": "onpaste", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -8401,7 +8401,7 @@ } }, { - "HashCode": 1382885447, + "HashCode": 319557522, "Kind": "Components.EventHandler", "Name": "ontouchcancel", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -8484,7 +8484,7 @@ } }, { - "HashCode": -1951628461, + "HashCode": -1751444600, "Kind": "Components.EventHandler", "Name": "ontouchend", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -8567,7 +8567,7 @@ } }, { - "HashCode": -78662695, + "HashCode": -1337284041, "Kind": "Components.EventHandler", "Name": "ontouchmove", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -8650,7 +8650,7 @@ } }, { - "HashCode": 1393348908, + "HashCode": 208783067, "Kind": "Components.EventHandler", "Name": "ontouchstart", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -8733,7 +8733,7 @@ } }, { - "HashCode": 217511680, + "HashCode": -1568667217, "Kind": "Components.EventHandler", "Name": "ontouchenter", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -8816,7 +8816,7 @@ } }, { - "HashCode": 1653349831, + "HashCode": -1142497407, "Kind": "Components.EventHandler", "Name": "ontouchleave", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -8899,7 +8899,7 @@ } }, { - "HashCode": 203330585, + "HashCode": 2042218797, "Kind": "Components.EventHandler", "Name": "ongotpointercapture", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -8982,7 +8982,7 @@ } }, { - "HashCode": 2008897368, + "HashCode": 1113755690, "Kind": "Components.EventHandler", "Name": "onlostpointercapture", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -9065,7 +9065,7 @@ } }, { - "HashCode": -791193058, + "HashCode": -51315402, "Kind": "Components.EventHandler", "Name": "onpointercancel", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -9148,7 +9148,7 @@ } }, { - "HashCode": -199217052, + "HashCode": -1965788844, "Kind": "Components.EventHandler", "Name": "onpointerdown", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -9231,7 +9231,7 @@ } }, { - "HashCode": 1723959416, + "HashCode": 1834476472, "Kind": "Components.EventHandler", "Name": "onpointerenter", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -9314,7 +9314,7 @@ } }, { - "HashCode": -1951566888, + "HashCode": -853265490, "Kind": "Components.EventHandler", "Name": "onpointerleave", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -9397,7 +9397,7 @@ } }, { - "HashCode": 1513310669, + "HashCode": 595518166, "Kind": "Components.EventHandler", "Name": "onpointermove", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -9480,7 +9480,7 @@ } }, { - "HashCode": 1627177878, + "HashCode": -907833077, "Kind": "Components.EventHandler", "Name": "onpointerout", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -9563,7 +9563,7 @@ } }, { - "HashCode": -1783061511, + "HashCode": -1340477318, "Kind": "Components.EventHandler", "Name": "onpointerover", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -9646,7 +9646,7 @@ } }, { - "HashCode": 1215386120, + "HashCode": -1240827604, "Kind": "Components.EventHandler", "Name": "onpointerup", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -9729,7 +9729,7 @@ } }, { - "HashCode": -484020726, + "HashCode": -82459288, "Kind": "Components.EventHandler", "Name": "oncanplay", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -9812,7 +9812,7 @@ } }, { - "HashCode": 1671405890, + "HashCode": 1780867390, "Kind": "Components.EventHandler", "Name": "oncanplaythrough", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -9895,7 +9895,7 @@ } }, { - "HashCode": -171143880, + "HashCode": 878038732, "Kind": "Components.EventHandler", "Name": "oncuechange", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -9978,7 +9978,7 @@ } }, { - "HashCode": 647457750, + "HashCode": 769151950, "Kind": "Components.EventHandler", "Name": "ondurationchange", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -10061,7 +10061,7 @@ } }, { - "HashCode": 686146264, + "HashCode": 220961075, "Kind": "Components.EventHandler", "Name": "onemptied", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -10144,7 +10144,7 @@ } }, { - "HashCode": -10809549, + "HashCode": -347341843, "Kind": "Components.EventHandler", "Name": "onpause", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -10227,7 +10227,7 @@ } }, { - "HashCode": -206735498, + "HashCode": -1545891923, "Kind": "Components.EventHandler", "Name": "onplay", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -10310,7 +10310,7 @@ } }, { - "HashCode": -1346035498, + "HashCode": 740530642, "Kind": "Components.EventHandler", "Name": "onplaying", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -10393,7 +10393,7 @@ } }, { - "HashCode": 1273076691, + "HashCode": 515371596, "Kind": "Components.EventHandler", "Name": "onratechange", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -10476,7 +10476,7 @@ } }, { - "HashCode": -726788317, + "HashCode": 1652648965, "Kind": "Components.EventHandler", "Name": "onseeked", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -10559,7 +10559,7 @@ } }, { - "HashCode": 934559708, + "HashCode": -696197709, "Kind": "Components.EventHandler", "Name": "onseeking", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -10642,7 +10642,7 @@ } }, { - "HashCode": 559207306, + "HashCode": 1391700113, "Kind": "Components.EventHandler", "Name": "onstalled", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -10725,7 +10725,7 @@ } }, { - "HashCode": 1801316130, + "HashCode": 1524087099, "Kind": "Components.EventHandler", "Name": "onstop", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -10808,7 +10808,7 @@ } }, { - "HashCode": 1965035421, + "HashCode": 1485581820, "Kind": "Components.EventHandler", "Name": "onsuspend", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -10891,7 +10891,7 @@ } }, { - "HashCode": 656092567, + "HashCode": -657826198, "Kind": "Components.EventHandler", "Name": "ontimeupdate", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -10974,7 +10974,7 @@ } }, { - "HashCode": 1242218275, + "HashCode": -1616747613, "Kind": "Components.EventHandler", "Name": "onvolumechange", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -11057,7 +11057,7 @@ } }, { - "HashCode": -713092496, + "HashCode": 2012045832, "Kind": "Components.EventHandler", "Name": "onwaiting", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -11140,7 +11140,7 @@ } }, { - "HashCode": 913705635, + "HashCode": 916337003, "Kind": "Components.EventHandler", "Name": "onloadstart", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -11223,7 +11223,7 @@ } }, { - "HashCode": -942489555, + "HashCode": -341188731, "Kind": "Components.EventHandler", "Name": "ontimeout", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -11306,7 +11306,7 @@ } }, { - "HashCode": -1022801237, + "HashCode": -920922554, "Kind": "Components.EventHandler", "Name": "onabort", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -11389,7 +11389,7 @@ } }, { - "HashCode": 1363017700, + "HashCode": -48798437, "Kind": "Components.EventHandler", "Name": "onload", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -11472,7 +11472,7 @@ } }, { - "HashCode": 270783116, + "HashCode": 1786562080, "Kind": "Components.EventHandler", "Name": "onloadend", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -11555,7 +11555,7 @@ } }, { - "HashCode": 1166598632, + "HashCode": -2120903845, "Kind": "Components.EventHandler", "Name": "onprogress", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -11638,7 +11638,7 @@ } }, { - "HashCode": 211640145, + "HashCode": 1643142338, "Kind": "Components.EventHandler", "Name": "onerror", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -11721,7 +11721,7 @@ } }, { - "HashCode": 1723595220, + "HashCode": -1618220396, "Kind": "Components.EventHandler", "Name": "onactivate", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -11804,7 +11804,7 @@ } }, { - "HashCode": 93604452, + "HashCode": 1667104602, "Kind": "Components.EventHandler", "Name": "onbeforeactivate", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -11887,7 +11887,7 @@ } }, { - "HashCode": -1936207709, + "HashCode": -1606642983, "Kind": "Components.EventHandler", "Name": "onbeforedeactivate", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -11970,7 +11970,7 @@ } }, { - "HashCode": -221677346, + "HashCode": -2094524130, "Kind": "Components.EventHandler", "Name": "ondeactivate", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -12053,7 +12053,7 @@ } }, { - "HashCode": 76692811, + "HashCode": 1820211191, "Kind": "Components.EventHandler", "Name": "onended", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -12136,7 +12136,7 @@ } }, { - "HashCode": -34003445, + "HashCode": 1184805162, "Kind": "Components.EventHandler", "Name": "onfullscreenchange", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -12219,7 +12219,7 @@ } }, { - "HashCode": 1060742, + "HashCode": -386605874, "Kind": "Components.EventHandler", "Name": "onfullscreenerror", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -12302,7 +12302,7 @@ } }, { - "HashCode": 62846564, + "HashCode": 1224722735, "Kind": "Components.EventHandler", "Name": "onloadeddata", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -12385,7 +12385,7 @@ } }, { - "HashCode": -824436044, + "HashCode": 1399594691, "Kind": "Components.EventHandler", "Name": "onloadedmetadata", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -12468,7 +12468,7 @@ } }, { - "HashCode": 1603729710, + "HashCode": -1205007370, "Kind": "Components.EventHandler", "Name": "onpointerlockchange", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -12551,7 +12551,7 @@ } }, { - "HashCode": -1752856389, + "HashCode": 1044812965, "Kind": "Components.EventHandler", "Name": "onpointerlockerror", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -12634,7 +12634,7 @@ } }, { - "HashCode": 1177611840, + "HashCode": 1879948295, "Kind": "Components.EventHandler", "Name": "onreadystatechange", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -12717,7 +12717,7 @@ } }, { - "HashCode": -1527484101, + "HashCode": 711852946, "Kind": "Components.EventHandler", "Name": "onscroll", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -12800,7 +12800,7 @@ } }, { - "HashCode": 305771148, + "HashCode": -1650932832, "Kind": "Components.EventHandler", "Name": "ontoggle", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -12883,7 +12883,7 @@ } }, { - "HashCode": 855313726, + "HashCode": 121093848, "Kind": "Components.Splat", "Name": "Attributes", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -12922,7 +12922,7 @@ } }, { - "HashCode": -290452171, + "HashCode": 1266267971, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.Razor", @@ -13239,7 +13239,7 @@ } }, { - "HashCode": 1568991100, + "HashCode": 1628480187, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -13438,7 +13438,7 @@ } }, { - "HashCode": 1000360069, + "HashCode": 756937211, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -13567,7 +13567,7 @@ } }, { - "HashCode": -942473839, + "HashCode": -259824253, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.ComponentTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -13624,7 +13624,7 @@ } }, { - "HashCode": 583167893, + "HashCode": -169874287, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.DistributedCacheTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -13758,7 +13758,7 @@ } }, { - "HashCode": 2121657821, + "HashCode": 1803220350, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.EnvironmentTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -13806,7 +13806,7 @@ } }, { - "HashCode": 767513462, + "HashCode": 1256109007, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.FormActionTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -14225,7 +14225,7 @@ } }, { - "HashCode": -1805185302, + "HashCode": 1257929493, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -14329,7 +14329,7 @@ } }, { - "HashCode": -1681609183, + "HashCode": -1821263258, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.ImageTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -14377,7 +14377,7 @@ } }, { - "HashCode": -263093943, + "HashCode": -1345367043, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -14449,7 +14449,7 @@ } }, { - "HashCode": 1619610227, + "HashCode": -1122311127, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.LabelTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -14484,7 +14484,7 @@ } }, { - "HashCode": -1633138402, + "HashCode": 1229558649, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.LinkTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -14682,7 +14682,7 @@ } }, { - "HashCode": 2081105648, + "HashCode": 1136651408, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.OptionTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -14712,7 +14712,7 @@ } }, { - "HashCode": 1952304170, + "HashCode": 2135155869, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -14795,7 +14795,7 @@ } }, { - "HashCode": 1181739981, + "HashCode": 1332945770, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.PersistComponentStateTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -14826,7 +14826,7 @@ } }, { - "HashCode": -401095410, + "HashCode": -1232307233, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.ScriptTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -14981,7 +14981,7 @@ } }, { - "HashCode": -556031010, + "HashCode": -1513635912, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.SelectTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -15042,7 +15042,7 @@ } }, { - "HashCode": 21819538, + "HashCode": 1368960468, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.TextAreaTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -15086,7 +15086,7 @@ } }, { - "HashCode": -598896277, + "HashCode": -947423099, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.ValidationMessageTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -15121,7 +15121,7 @@ } }, { - "HashCode": -1681859105, + "HashCode": -686718874, "Kind": "ITagHelper", "Name": "Microsoft.AspNetCore.Mvc.TagHelpers.ValidationSummaryTagHelper", "AssemblyName": "Microsoft.AspNetCore.Mvc.TagHelpers", @@ -15157,7 +15157,7 @@ } }, { - "HashCode": 1315124763, + "HashCode": -66673784, "Kind": "Components.Bind", "Name": "Bind", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -15253,7 +15253,7 @@ } }, { - "HashCode": 930037677, + "HashCode": 1468483210, "Kind": "Components.Bind", "Name": "Bind", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -15375,7 +15375,7 @@ } }, { - "HashCode": -700142577, + "HashCode": -1815909950, "Kind": "Components.Bind", "Name": "Bind_value", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -15497,7 +15497,7 @@ } }, { - "HashCode": 1298676263, + "HashCode": 841839238, "Kind": "Components.Bind", "Name": "Bind", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -15630,7 +15630,7 @@ } }, { - "HashCode": -575256677, + "HashCode": -43907674, "Kind": "Components.Bind", "Name": "Bind", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -15763,7 +15763,7 @@ } }, { - "HashCode": -233533530, + "HashCode": 1590058705, "Kind": "Components.Bind", "Name": "Bind", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -15896,7 +15896,7 @@ } }, { - "HashCode": -56764341, + "HashCode": 350227746, "Kind": "Components.Bind", "Name": "Bind_value", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -16029,7 +16029,7 @@ } }, { - "HashCode": -1247295524, + "HashCode": -1810861764, "Kind": "Components.Bind", "Name": "Bind", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -16162,7 +16162,7 @@ } }, { - "HashCode": -1753202487, + "HashCode": 2027531211, "Kind": "Components.Bind", "Name": "Bind_value", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -16295,7 +16295,7 @@ } }, { - "HashCode": -38774276, + "HashCode": 1874173602, "Kind": "Components.Bind", "Name": "Bind", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -16428,7 +16428,7 @@ } }, { - "HashCode": 1861822616, + "HashCode": -1044600157, "Kind": "Components.Bind", "Name": "Bind_value", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -16561,7 +16561,7 @@ } }, { - "HashCode": -1544906374, + "HashCode": 434253106, "Kind": "Components.Bind", "Name": "Bind", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -16694,7 +16694,7 @@ } }, { - "HashCode": -1433872558, + "HashCode": -1531178262, "Kind": "Components.Bind", "Name": "Bind_value", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -16827,7 +16827,7 @@ } }, { - "HashCode": 340255098, + "HashCode": 1889940162, "Kind": "Components.Bind", "Name": "Bind", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -16960,7 +16960,7 @@ } }, { - "HashCode": 349270569, + "HashCode": -651589239, "Kind": "Components.Bind", "Name": "Bind_value", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -17093,7 +17093,7 @@ } }, { - "HashCode": -1497457060, + "HashCode": 867580935, "Kind": "Components.Bind", "Name": "Bind", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -17215,7 +17215,7 @@ } }, { - "HashCode": 861699013, + "HashCode": -859905582, "Kind": "Components.Bind", "Name": "Bind", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -17337,7 +17337,7 @@ } }, { - "HashCode": -807118965, + "HashCode": -369024666, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputCheckbox", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -17424,7 +17424,7 @@ } }, { - "HashCode": 1988349776, + "HashCode": 1557101280, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputCheckbox", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -17512,7 +17512,7 @@ } }, { - "HashCode": -2059881393, + "HashCode": 905644393, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputDate", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -17599,7 +17599,7 @@ } }, { - "HashCode": -1440322479, + "HashCode": 672861475, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputDate", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -17687,7 +17687,7 @@ } }, { - "HashCode": 764584161, + "HashCode": -884479586, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputNumber", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -17774,7 +17774,7 @@ } }, { - "HashCode": -220356465, + "HashCode": 187099102, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputNumber", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -17862,7 +17862,7 @@ } }, { - "HashCode": 321692302, + "HashCode": -2007706619, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputRadioGroup", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -17949,7 +17949,7 @@ } }, { - "HashCode": 856597658, + "HashCode": -1856253972, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputRadioGroup", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -18037,7 +18037,7 @@ } }, { - "HashCode": -39710888, + "HashCode": 474763082, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputSelect", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -18124,7 +18124,7 @@ } }, { - "HashCode": 1559044508, + "HashCode": 1214602500, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputSelect", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -18212,7 +18212,7 @@ } }, { - "HashCode": -477498302, + "HashCode": 1143003957, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputText", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -18299,7 +18299,7 @@ } }, { - "HashCode": -1145628956, + "HashCode": -868011253, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputText", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -18387,7 +18387,7 @@ } }, { - "HashCode": -402937029, + "HashCode": 1807014444, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputTextArea", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -18474,7 +18474,7 @@ } }, { - "HashCode": -1309178961, + "HashCode": -622570597, "Kind": "Components.Bind", "Name": "Microsoft.AspNetCore.Components.Forms.InputTextArea", "AssemblyName": "Microsoft.AspNetCore.Components.Web", @@ -18562,7 +18562,7 @@ } }, { - "HashCode": 391391247, + "HashCode": -1429971137, "Kind": "Components.Ref", "Name": "Ref", "AssemblyName": "Microsoft.AspNetCore.Components", @@ -18601,7 +18601,7 @@ } }, { - "HashCode": 1257419009, + "HashCode": 1716166578, "Kind": "Components.Key", "Name": "Key", "AssemblyName": "Microsoft.AspNetCore.Components", diff --git a/obj/project.assets.json b/obj/project.assets.json index fbb456d..8c6a165 100644 --- a/obj/project.assets.json +++ b/obj/project.assets.json @@ -1263,10 +1263,10 @@ "buildTransitive/net6.0/_._": {} } }, - "Microsoft.Extensions.Configuration.Binder/2.0.0": { + "Microsoft.Extensions.Configuration.Binder/2.1.1": { "type": "package", "dependencies": { - "Microsoft.Extensions.Configuration": "2.0.0" + "Microsoft.Extensions.Configuration": "2.1.1" }, "compile": { "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": { @@ -1875,6 +1875,41 @@ } } }, + "runtime.native.System.Data.SqlClient.sni/4.5.0": { + "type": "package", + "dependencies": { + "runtime.win-arm64.runtime.native.System.Data.SqlClient.sni": "4.4.0", + "runtime.win-x64.runtime.native.System.Data.SqlClient.sni": "4.4.0", + "runtime.win-x86.runtime.native.System.Data.SqlClient.sni": "4.4.0" + } + }, + "runtime.win-arm64.runtime.native.System.Data.SqlClient.sni/4.4.0": { + "type": "package", + "runtimeTargets": { + "runtimes/win-arm64/native/sni.dll": { + "assetType": "native", + "rid": "win-arm64" + } + } + }, + "runtime.win-x64.runtime.native.System.Data.SqlClient.sni/4.4.0": { + "type": "package", + "runtimeTargets": { + "runtimes/win-x64/native/sni.dll": { + "assetType": "native", + "rid": "win-x64" + } + } + }, + "runtime.win-x86.runtime.native.System.Data.SqlClient.sni/4.4.0": { + "type": "package", + "runtimeTargets": { + "runtimes/win-x86/native/sni.dll": { + "assetType": "native", + "rid": "win-x86" + } + } + }, "Serilog/2.12.0": { "type": "package", "compile": { @@ -2117,6 +2152,105 @@ } } }, + "SQLitePCLRaw.bundle_green/2.0.1": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.core": "2.0.1", + "SQLitePCLRaw.lib.e_sqlite3": "2.0.1", + "SQLitePCLRaw.provider.dynamic_cdecl": "2.0.1" + }, + "compile": { + "lib/netcoreapp3.0/SQLitePCLRaw.batteries_v2.dll": {}, + "lib/netcoreapp3.0/SQLitePCLRaw.nativelibrary.dll": {} + }, + "runtime": { + "lib/netcoreapp3.0/SQLitePCLRaw.batteries_v2.dll": {}, + "lib/netcoreapp3.0/SQLitePCLRaw.nativelibrary.dll": {} + } + }, + "SQLitePCLRaw.core/2.0.1": { + "type": "package", + "dependencies": { + "System.Memory": "4.5.3" + }, + "compile": { + "lib/netstandard2.0/SQLitePCLRaw.core.dll": {} + }, + "runtime": { + "lib/netstandard2.0/SQLitePCLRaw.core.dll": {} + } + }, + "SQLitePCLRaw.lib.e_sqlite3/2.0.1": { + "type": "package", + "compile": { + "lib/netstandard2.0/_._": {} + }, + "runtime": { + "lib/netstandard2.0/_._": {} + }, + "runtimeTargets": { + "runtimes/alpine-x64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "alpine-x64" + }, + "runtimes/linux-arm/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-arm" + }, + "runtimes/linux-arm64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-arm64" + }, + "runtimes/linux-armel/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-armel" + }, + "runtimes/linux-musl-x64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-musl-x64" + }, + "runtimes/linux-x64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-x64" + }, + "runtimes/linux-x86/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-x86" + }, + "runtimes/osx-x64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "osx-x64" + }, + "runtimes/win-arm/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-arm" + }, + "runtimes/win-arm64/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-arm64" + }, + "runtimes/win-x64/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-x64" + }, + "runtimes/win-x86/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-x86" + } + } + }, + "SQLitePCLRaw.provider.dynamic_cdecl/2.0.1": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.core": "2.0.1" + }, + "compile": { + "lib/netstandard2.0/SQLitePCLRaw.provider.dynamic_cdecl.dll": {} + }, + "runtime": { + "lib/netstandard2.0/SQLitePCLRaw.provider.dynamic_cdecl.dll": {} + } + }, "Swashbuckle.AspNetCore/6.4.0": { "type": "package", "dependencies": { @@ -2255,6 +2389,69 @@ } } }, + "System.Configuration.ConfigurationManager/4.5.0": { + "type": "package", + "dependencies": { + "System.Security.Cryptography.ProtectedData": "4.5.0", + "System.Security.Permissions": "4.5.0" + }, + "compile": { + "ref/netstandard2.0/System.Configuration.ConfigurationManager.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard2.0/System.Configuration.ConfigurationManager.dll": {} + } + }, + "System.Data.Common/4.3.0": { + "type": "package", + "dependencies": { + "System.Collections": "4.3.0", + "System.Globalization": "4.3.0", + "System.IO": "4.3.0", + "System.Resources.ResourceManager": "4.3.0", + "System.Runtime": "4.3.0", + "System.Runtime.Extensions": "4.3.0", + "System.Text.RegularExpressions": "4.3.0", + "System.Threading.Tasks": "4.3.0" + }, + "compile": { + "ref/netstandard1.2/System.Data.Common.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard1.2/System.Data.Common.dll": {} + } + }, + "System.Data.SqlClient/4.6.0": { + "type": "package", + "dependencies": { + "Microsoft.Win32.Registry": "4.5.0", + "System.Security.Principal.Windows": "4.5.0", + "System.Text.Encoding.CodePages": "4.5.0", + "runtime.native.System.Data.SqlClient.sni": "4.5.0" + }, + "compile": { + "ref/netcoreapp2.1/System.Data.SqlClient.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netcoreapp2.1/System.Data.SqlClient.dll": {} + }, + "runtimeTargets": { + "runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll": { + "assetType": "runtime", + "rid": "unix" + }, + "runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll": { + "assetType": "runtime", + "rid": "win" + } + } + }, "System.Diagnostics.Debug/4.3.0": { "type": "package", "dependencies": { @@ -2418,6 +2615,17 @@ "lib/netstandard1.3/System.IO.FileSystem.Primitives.dll": {} } }, + "System.IO.Packaging/4.5.0": { + "type": "package", + "compile": { + "ref/netstandard2.0/System.IO.Packaging.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard2.0/System.IO.Packaging.dll": {} + } + }, "System.Memory/4.5.4": { "type": "package", "compile": { @@ -2437,11 +2645,62 @@ "System.Runtime": "4.3.0" }, "compile": { - "ref/netstandard1.5/_._": { + "ref/netstandard1.5/System.Reflection.dll": { "related": ".xml" } } }, + "System.Reflection.Emit/4.3.0": { + "type": "package", + "dependencies": { + "System.IO": "4.3.0", + "System.Reflection": "4.3.0", + "System.Reflection.Emit.ILGeneration": "4.3.0", + "System.Reflection.Primitives": "4.3.0", + "System.Runtime": "4.3.0" + }, + "compile": { + "ref/netstandard1.1/System.Reflection.Emit.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard1.3/System.Reflection.Emit.dll": {} + } + }, + "System.Reflection.Emit.ILGeneration/4.3.0": { + "type": "package", + "dependencies": { + "System.Reflection": "4.3.0", + "System.Reflection.Primitives": "4.3.0", + "System.Runtime": "4.3.0" + }, + "compile": { + "ref/netstandard1.0/System.Reflection.Emit.ILGeneration.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard1.3/System.Reflection.Emit.ILGeneration.dll": {} + } + }, + "System.Reflection.Emit.Lightweight/4.3.0": { + "type": "package", + "dependencies": { + "System.Reflection": "4.3.0", + "System.Reflection.Emit.ILGeneration": "4.3.0", + "System.Reflection.Primitives": "4.3.0", + "System.Runtime": "4.3.0" + }, + "compile": { + "ref/netstandard1.0/System.Reflection.Emit.Lightweight.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard1.3/System.Reflection.Emit.Lightweight.dll": {} + } + }, "System.Reflection.Metadata/5.0.0": { "type": "package", "compile": { @@ -2463,7 +2722,7 @@ "System.Runtime": "4.3.0" }, "compile": { - "ref/netstandard1.0/_._": { + "ref/netstandard1.0/System.Reflection.Primitives.dll": { "related": ".xml" } } @@ -2560,6 +2819,22 @@ "ref/netcoreapp1.1/_._": {} } }, + "System.Runtime.Loader/4.3.0": { + "type": "package", + "dependencies": { + "System.IO": "4.3.0", + "System.Reflection": "4.3.0", + "System.Runtime": "4.3.0" + }, + "compile": { + "ref/netstandard1.5/System.Runtime.Loader.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard1.5/System.Runtime.Loader.dll": {} + } + }, "System.Security.AccessControl/4.5.0": { "type": "package", "dependencies": { @@ -2623,6 +2898,23 @@ } } }, + "System.Security.Cryptography.ProtectedData/4.5.0": { + "type": "package", + "compile": { + "ref/netstandard2.0/_._": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": {} + }, + "runtimeTargets": { + "runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll": { + "assetType": "runtime", + "rid": "win" + } + } + }, "System.Security.Cryptography.Xml/7.0.1": { "type": "package", "dependencies": { @@ -2642,6 +2934,20 @@ "buildTransitive/net6.0/_._": {} } }, + "System.Security.Permissions/4.5.0": { + "type": "package", + "dependencies": { + "System.Security.AccessControl": "4.5.0" + }, + "compile": { + "ref/netstandard2.0/System.Security.Permissions.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard2.0/System.Security.Permissions.dll": {} + } + }, "System.Security.Principal.Windows/4.5.0": { "type": "package", "dependencies": { @@ -2783,6 +3089,27 @@ "lib/netstandard1.3/System.Threading.dll": {} } }, + "System.Threading.AccessControl/4.5.0": { + "type": "package", + "dependencies": { + "System.Security.AccessControl": "4.5.0", + "System.Security.Principal.Windows": "4.5.0" + }, + "compile": { + "ref/netstandard2.0/System.Threading.AccessControl.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard2.0/System.Threading.AccessControl.dll": {} + }, + "runtimeTargets": { + "runtimes/win/lib/netstandard2.0/System.Threading.AccessControl.dll": { + "assetType": "runtime", + "rid": "win" + } + } + }, "System.Threading.Tasks/4.3.0": { "type": "package", "dependencies": { @@ -2925,6 +3252,36 @@ "runtime": { "lib/netstandard1.3/System.Xml.XPath.XmlDocument.dll": {} } + }, + "Telerik.Reporting/15.1.21.616": { + "type": "package", + "dependencies": { + "Microsoft.Extensions.Configuration": "2.1.1", + "Microsoft.Extensions.Configuration.Binder": "2.1.1", + "Microsoft.Extensions.Configuration.Json": "2.1.1", + "SQLitePCLRaw.bundle_green": "2.0.1", + "System.Configuration.ConfigurationManager": "4.5.0", + "System.Data.Common": "4.3.0", + "System.Data.SqlClient": "4.6.0", + "System.Drawing.Common": "4.5.1", + "System.IO.Packaging": "4.5.0", + "System.Reflection.Emit": "4.3.0", + "System.Reflection.Emit.Lightweight": "4.3.0", + "System.Runtime.Loader": "4.3.0", + "System.Security.Cryptography.Pkcs": "4.5.1", + "System.Security.Permissions": "4.5.0", + "System.Text.Encoding.CodePages": "4.5.0", + "System.Text.Json": "5.0.0", + "System.Threading.AccessControl": "4.5.0" + }, + "compile": { + "lib/netcoreapp2.0/SQLite-net.dll": {}, + "lib/netcoreapp2.0/Telerik.Reporting.dll": {} + }, + "runtime": { + "lib/netcoreapp2.0/SQLite-net.dll": {}, + "lib/netcoreapp2.0/Telerik.Reporting.dll": {} + } } } }, @@ -4466,16 +4823,16 @@ "useSharedDesignerContext.txt" ] }, - "Microsoft.Extensions.Configuration.Binder/2.0.0": { - "sha512": "IznHHzGUtrdpuQqIUdmzF6TYPcsYHONhHh3o9dGp39sX/9Zfmt476UnhvU0UhXgJnXXAikt/MpN6AuSLCCMdEQ==", + "Microsoft.Extensions.Configuration.Binder/2.1.1": { + "sha512": "fcLCTS03poWE4v9tSNBr3pWn0QwGgAn1vzqHXlXgvqZeOc7LvQNzaWcKRQZTdEc3+YhQKwMsOtm3VKSA2aWQ8w==", "type": "package", - "path": "microsoft.extensions.configuration.binder/2.0.0", + "path": "microsoft.extensions.configuration.binder/2.1.1", "files": [ ".nupkg.metadata", ".signature.p7s", "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll", "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.xml", - "microsoft.extensions.configuration.binder.2.0.0.nupkg.sha512", + "microsoft.extensions.configuration.binder.2.1.1.nupkg.sha512", "microsoft.extensions.configuration.binder.nuspec" ] }, @@ -5370,6 +5727,69 @@ "pomelo.entityframeworkcore.mysql.nuspec" ] }, + "runtime.native.System.Data.SqlClient.sni/4.5.0": { + "sha512": "AJfX7owAAkMjWQYhoml5IBfXh8UyYPjktn8pK0BFGAdKgBS7HqMz1fw5vdzfZUWfhtTPDGCjgNttt46ZyEmSjg==", + "type": "package", + "path": "runtime.native.system.data.sqlclient.sni/4.5.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "runtime.native.system.data.sqlclient.sni.4.5.0.nupkg.sha512", + "runtime.native.system.data.sqlclient.sni.nuspec", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, + "runtime.win-arm64.runtime.native.System.Data.SqlClient.sni/4.4.0": { + "sha512": "LbrynESTp3bm5O/+jGL8v0Qg5SJlTV08lpIpFesXjF6uGNMWqFnUQbYBJwZTeua6E/Y7FIM1C54Ey1btLWupdg==", + "type": "package", + "path": "runtime.win-arm64.runtime.native.system.data.sqlclient.sni/4.4.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "ThirdPartyNotices.txt", + "dotnet_library_license.txt", + "runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512", + "runtime.win-arm64.runtime.native.system.data.sqlclient.sni.nuspec", + "runtimes/win-arm64/native/sni.dll", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, + "runtime.win-x64.runtime.native.System.Data.SqlClient.sni/4.4.0": { + "sha512": "38ugOfkYJqJoX9g6EYRlZB5U2ZJH51UP8ptxZgdpS07FgOEToV+lS11ouNK2PM12Pr6X/PpT5jK82G3DwH/SxQ==", + "type": "package", + "path": "runtime.win-x64.runtime.native.system.data.sqlclient.sni/4.4.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "ThirdPartyNotices.txt", + "dotnet_library_license.txt", + "runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512", + "runtime.win-x64.runtime.native.system.data.sqlclient.sni.nuspec", + "runtimes/win-x64/native/sni.dll", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, + "runtime.win-x86.runtime.native.System.Data.SqlClient.sni/4.4.0": { + "sha512": "YhEdSQUsTx+C8m8Bw7ar5/VesXvCFMItyZF7G1AUY+OM0VPZUOeAVpJ4Wl6fydBGUYZxojTDR3I6Bj/+BPkJNA==", + "type": "package", + "path": "runtime.win-x86.runtime.native.system.data.sqlclient.sni/4.4.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "ThirdPartyNotices.txt", + "dotnet_library_license.txt", + "runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512", + "runtime.win-x86.runtime.native.system.data.sqlclient.sni.nuspec", + "runtimes/win-x86/native/sni.dll", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, "Serilog/2.12.0": { "sha512": "xaiJLIdu6rYMKfQMYUZgTy8YK7SMZjB4Yk50C/u//Z4OsvxkUfSPJy4nknfvwAC34yr13q7kcyh4grbwhSxyZg==", "type": "package", @@ -5653,6 +6073,78 @@ "serilog.sinks.periodicbatching.nuspec" ] }, + "SQLitePCLRaw.bundle_green/2.0.1": { + "sha512": "4NlL9XJsQmtAXizH9SHKx0X5yLZ/ZgpeZ/xsElKllCa1Q9Jv3zd1mWkIUFdSS5nBBL1Z6IzbM1mNR3k1vHtT6Q==", + "type": "package", + "path": "sqlitepclraw.bundle_green/2.0.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/Xamarin.iOS10/SQLitePCLRaw.batteries_v2.dll", + "lib/Xamarin.iOS10/SQLitePCLRaw.nativelibrary.dll", + "lib/net461/SQLitePCLRaw.batteries_v2.dll", + "lib/net461/SQLitePCLRaw.nativelibrary.dll", + "lib/netcoreapp3.0/SQLitePCLRaw.batteries_v2.dll", + "lib/netcoreapp3.0/SQLitePCLRaw.nativelibrary.dll", + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll", + "sqlitepclraw.bundle_green.2.0.1.nupkg.sha512", + "sqlitepclraw.bundle_green.nuspec" + ] + }, + "SQLitePCLRaw.core/2.0.1": { + "sha512": "FOY4Zq0HmkIhpAp9GtaUSfm7Eq3gxhYxtMRuUU/JrdYIfB3KvQW6SfeqcAF4zF/j1hpQRAZ+Cs7l7CcPhSIN/w==", + "type": "package", + "path": "sqlitepclraw.core/2.0.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/netstandard2.0/SQLitePCLRaw.core.dll", + "sqlitepclraw.core.2.0.1.nupkg.sha512", + "sqlitepclraw.core.nuspec" + ] + }, + "SQLitePCLRaw.lib.e_sqlite3/2.0.1": { + "sha512": "BYYxlBfvVXEyRS46qaKH9VRs+qL5XRfPHNPPgiexQ63KLRAacTwzQHCT6wTUFmMFqAhRqEPdD2zQrMlBlIiNAA==", + "type": "package", + "path": "sqlitepclraw.lib.e_sqlite3/2.0.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "build/net461/SQLitePCLRaw.lib.e_sqlite3.targets", + "lib/net461/_._", + "lib/netstandard2.0/_._", + "runtimes/alpine-x64/native/libe_sqlite3.so", + "runtimes/linux-arm/native/libe_sqlite3.so", + "runtimes/linux-arm64/native/libe_sqlite3.so", + "runtimes/linux-armel/native/libe_sqlite3.so", + "runtimes/linux-musl-x64/native/libe_sqlite3.so", + "runtimes/linux-x64/native/libe_sqlite3.so", + "runtimes/linux-x86/native/libe_sqlite3.so", + "runtimes/osx-x64/native/libe_sqlite3.dylib", + "runtimes/win-arm/native/e_sqlite3.dll", + "runtimes/win-arm64/native/e_sqlite3.dll", + "runtimes/win-x64/native/e_sqlite3.dll", + "runtimes/win-x86/native/e_sqlite3.dll", + "runtimes/win10-arm/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-arm64/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-x64/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-x86/nativeassets/uap10.0/e_sqlite3.dll", + "sqlitepclraw.lib.e_sqlite3.2.0.1.nupkg.sha512", + "sqlitepclraw.lib.e_sqlite3.nuspec" + ] + }, + "SQLitePCLRaw.provider.dynamic_cdecl/2.0.1": { + "sha512": "eZRB8E5hdOUHED6w1MhRfBTAySdxIv3x5EDPXDvZf/r25K2Refs/0G+nEXtS9k1A+gJypxM4py/t8itBVIkTjA==", + "type": "package", + "path": "sqlitepclraw.provider.dynamic_cdecl/2.0.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/netstandard2.0/SQLitePCLRaw.provider.dynamic_cdecl.dll", + "sqlitepclraw.provider.dynamic_cdecl.2.0.1.nupkg.sha512", + "sqlitepclraw.provider.dynamic_cdecl.nuspec" + ] + }, "Swashbuckle.AspNetCore/6.4.0": { "sha512": "eUBr4TW0up6oKDA5Xwkul289uqSMgY0xGN4pnbOIBqCcN9VKGGaPvHX3vWaG/hvocfGDP+MGzMA0bBBKz2fkmQ==", "type": "package", @@ -6002,6 +6494,152 @@ "version.txt" ] }, + "System.Configuration.ConfigurationManager/4.5.0": { + "sha512": "UIFvaFfuKhLr9u5tWMxmVoDPkFeD+Qv8gUuap4aZgVGYSYMdERck4OhLN/2gulAc0nYTEigWXSJNNWshrmxnng==", + "type": "package", + "path": "system.configuration.configurationmanager/4.5.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "lib/net461/System.Configuration.ConfigurationManager.dll", + "lib/netstandard2.0/System.Configuration.ConfigurationManager.dll", + "ref/net461/System.Configuration.ConfigurationManager.dll", + "ref/net461/System.Configuration.ConfigurationManager.xml", + "ref/netstandard2.0/System.Configuration.ConfigurationManager.dll", + "ref/netstandard2.0/System.Configuration.ConfigurationManager.xml", + "system.configuration.configurationmanager.4.5.0.nupkg.sha512", + "system.configuration.configurationmanager.nuspec", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, + "System.Data.Common/4.3.0": { + "sha512": "lm6E3T5u7BOuEH0u18JpbJHxBfOJPuCyl4Kg1RH10ktYLp5uEEE1xKrHW56/We4SnZpGAuCc9N0MJpSDhTHZGQ==", + "type": "package", + "path": "system.data.common/4.3.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "ThirdPartyNotices.txt", + "dotnet_library_license.txt", + "lib/MonoAndroid10/_._", + "lib/MonoTouch10/_._", + "lib/net451/System.Data.Common.dll", + "lib/netstandard1.2/System.Data.Common.dll", + "lib/portable-net451+win8+wp8+wpa81/System.Data.Common.dll", + "lib/xamarinios10/_._", + "lib/xamarinmac20/_._", + "lib/xamarintvos10/_._", + "lib/xamarinwatchos10/_._", + "ref/MonoAndroid10/_._", + "ref/MonoTouch10/_._", + "ref/net451/System.Data.Common.dll", + "ref/netstandard1.2/System.Data.Common.dll", + "ref/netstandard1.2/System.Data.Common.xml", + "ref/netstandard1.2/de/System.Data.Common.xml", + "ref/netstandard1.2/es/System.Data.Common.xml", + "ref/netstandard1.2/fr/System.Data.Common.xml", + "ref/netstandard1.2/it/System.Data.Common.xml", + "ref/netstandard1.2/ja/System.Data.Common.xml", + "ref/netstandard1.2/ko/System.Data.Common.xml", + "ref/netstandard1.2/ru/System.Data.Common.xml", + "ref/netstandard1.2/zh-hans/System.Data.Common.xml", + "ref/netstandard1.2/zh-hant/System.Data.Common.xml", + "ref/portable-net451+win8+wp8+wpa81/System.Data.Common.dll", + "ref/portable-net451+win8+wp8+wpa81/System.Data.Common.xml", + "ref/portable-net451+win8+wp8+wpa81/de/System.Data.Common.xml", + "ref/portable-net451+win8+wp8+wpa81/es/System.Data.Common.xml", + "ref/portable-net451+win8+wp8+wpa81/fr/System.Data.Common.xml", + "ref/portable-net451+win8+wp8+wpa81/it/System.Data.Common.xml", + "ref/portable-net451+win8+wp8+wpa81/ja/System.Data.Common.xml", + "ref/portable-net451+win8+wp8+wpa81/ko/System.Data.Common.xml", + "ref/portable-net451+win8+wp8+wpa81/ru/System.Data.Common.xml", + "ref/portable-net451+win8+wp8+wpa81/zh-hans/System.Data.Common.xml", + "ref/portable-net451+win8+wp8+wpa81/zh-hant/System.Data.Common.xml", + "ref/xamarinios10/_._", + "ref/xamarinmac20/_._", + "ref/xamarintvos10/_._", + "ref/xamarinwatchos10/_._", + "system.data.common.4.3.0.nupkg.sha512", + "system.data.common.nuspec" + ] + }, + "System.Data.SqlClient/4.6.0": { + "sha512": "gwItUWW1BMCckicFO85c8frFaMK8SGqYn5IeA3GSX4Lmid+CjXETfoHz7Uv+Vx6L0No7iRc/7cBL8gd6o9k9/g==", + "type": "package", + "path": "system.data.sqlclient/4.6.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "lib/MonoAndroid10/_._", + "lib/MonoTouch10/_._", + "lib/net451/System.Data.SqlClient.dll", + "lib/net46/System.Data.SqlClient.dll", + "lib/net461/System.Data.SqlClient.dll", + "lib/netcoreapp2.1/System.Data.SqlClient.dll", + "lib/netstandard1.2/System.Data.SqlClient.dll", + "lib/netstandard1.3/System.Data.SqlClient.dll", + "lib/netstandard2.0/System.Data.SqlClient.dll", + "lib/xamarinios10/_._", + "lib/xamarinmac20/_._", + "lib/xamarintvos10/_._", + "lib/xamarinwatchos10/_._", + "ref/MonoAndroid10/_._", + "ref/MonoTouch10/_._", + "ref/net451/System.Data.SqlClient.dll", + "ref/net46/System.Data.SqlClient.dll", + "ref/net461/System.Data.SqlClient.dll", + "ref/net461/System.Data.SqlClient.xml", + "ref/netcoreapp2.1/System.Data.SqlClient.dll", + "ref/netcoreapp2.1/System.Data.SqlClient.xml", + "ref/netstandard1.2/System.Data.SqlClient.dll", + "ref/netstandard1.2/System.Data.SqlClient.xml", + "ref/netstandard1.2/de/System.Data.SqlClient.xml", + "ref/netstandard1.2/es/System.Data.SqlClient.xml", + "ref/netstandard1.2/fr/System.Data.SqlClient.xml", + "ref/netstandard1.2/it/System.Data.SqlClient.xml", + "ref/netstandard1.2/ja/System.Data.SqlClient.xml", + "ref/netstandard1.2/ko/System.Data.SqlClient.xml", + "ref/netstandard1.2/ru/System.Data.SqlClient.xml", + "ref/netstandard1.2/zh-hans/System.Data.SqlClient.xml", + "ref/netstandard1.2/zh-hant/System.Data.SqlClient.xml", + "ref/netstandard1.3/System.Data.SqlClient.dll", + "ref/netstandard1.3/System.Data.SqlClient.xml", + "ref/netstandard1.3/de/System.Data.SqlClient.xml", + "ref/netstandard1.3/es/System.Data.SqlClient.xml", + "ref/netstandard1.3/fr/System.Data.SqlClient.xml", + "ref/netstandard1.3/it/System.Data.SqlClient.xml", + "ref/netstandard1.3/ja/System.Data.SqlClient.xml", + "ref/netstandard1.3/ko/System.Data.SqlClient.xml", + "ref/netstandard1.3/ru/System.Data.SqlClient.xml", + "ref/netstandard1.3/zh-hans/System.Data.SqlClient.xml", + "ref/netstandard1.3/zh-hant/System.Data.SqlClient.xml", + "ref/netstandard2.0/System.Data.SqlClient.dll", + "ref/netstandard2.0/System.Data.SqlClient.xml", + "ref/xamarinios10/_._", + "ref/xamarinmac20/_._", + "ref/xamarintvos10/_._", + "ref/xamarinwatchos10/_._", + "runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll", + "runtimes/unix/lib/netstandard1.3/System.Data.SqlClient.dll", + "runtimes/unix/lib/netstandard2.0/System.Data.SqlClient.dll", + "runtimes/win/lib/net451/System.Data.SqlClient.dll", + "runtimes/win/lib/net46/System.Data.SqlClient.dll", + "runtimes/win/lib/net461/System.Data.SqlClient.dll", + "runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll", + "runtimes/win/lib/netstandard1.3/System.Data.SqlClient.dll", + "runtimes/win/lib/netstandard2.0/System.Data.SqlClient.dll", + "runtimes/win/lib/uap10.0.16299/System.Data.SqlClient.dll", + "system.data.sqlclient.4.6.0.nupkg.sha512", + "system.data.sqlclient.nuspec", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, "System.Diagnostics.Debug/4.3.0": { "sha512": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", "type": "package", @@ -6461,6 +7099,30 @@ "system.io.filesystem.primitives.nuspec" ] }, + "System.IO.Packaging/4.5.0": { + "sha512": "OjtW5pGp1E7KE3ontBrzy+nSFJCM6pcbVDdo3gg4DauTfdtZKdeKvMVlADF4fSY+OfXWUp4qCvOSxIltt37LbA==", + "type": "package", + "path": "system.io.packaging/4.5.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "lib/net46/System.IO.Packaging.dll", + "lib/netstandard1.3/System.IO.Packaging.dll", + "lib/netstandard2.0/System.IO.Packaging.dll", + "ref/net46/System.IO.Packaging.dll", + "ref/net46/System.IO.Packaging.xml", + "ref/netstandard1.3/System.IO.Packaging.dll", + "ref/netstandard1.3/System.IO.Packaging.xml", + "ref/netstandard2.0/System.IO.Packaging.dll", + "ref/netstandard2.0/System.IO.Packaging.xml", + "system.io.packaging.4.5.0.nupkg.sha512", + "system.io.packaging.nuspec", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, "System.Memory/4.5.4": { "sha512": "1MbJTHS1lZ4bS4FmsJjnuGJOu88ZzTT2rLvrhW7Ygic+pC0NWA+3hgAen0HRdsocuQXCkUTdFn9yHJJhsijDXw==", "type": "package", @@ -6565,6 +7227,132 @@ "system.reflection.nuspec" ] }, + "System.Reflection.Emit/4.3.0": { + "sha512": "228FG0jLcIwTVJyz8CLFKueVqQK36ANazUManGaJHkO0icjiIypKW7YLWLIWahyIkdh5M7mV2dJepllLyA1SKg==", + "type": "package", + "path": "system.reflection.emit/4.3.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "ThirdPartyNotices.txt", + "dotnet_library_license.txt", + "lib/MonoAndroid10/_._", + "lib/monotouch10/_._", + "lib/net45/_._", + "lib/netcore50/System.Reflection.Emit.dll", + "lib/netstandard1.3/System.Reflection.Emit.dll", + "lib/xamarinios10/_._", + "lib/xamarinmac20/_._", + "lib/xamarintvos10/_._", + "lib/xamarinwatchos10/_._", + "ref/MonoAndroid10/_._", + "ref/net45/_._", + "ref/netstandard1.1/System.Reflection.Emit.dll", + "ref/netstandard1.1/System.Reflection.Emit.xml", + "ref/netstandard1.1/de/System.Reflection.Emit.xml", + "ref/netstandard1.1/es/System.Reflection.Emit.xml", + "ref/netstandard1.1/fr/System.Reflection.Emit.xml", + "ref/netstandard1.1/it/System.Reflection.Emit.xml", + "ref/netstandard1.1/ja/System.Reflection.Emit.xml", + "ref/netstandard1.1/ko/System.Reflection.Emit.xml", + "ref/netstandard1.1/ru/System.Reflection.Emit.xml", + "ref/netstandard1.1/zh-hans/System.Reflection.Emit.xml", + "ref/netstandard1.1/zh-hant/System.Reflection.Emit.xml", + "ref/xamarinmac20/_._", + "system.reflection.emit.4.3.0.nupkg.sha512", + "system.reflection.emit.nuspec" + ] + }, + "System.Reflection.Emit.ILGeneration/4.3.0": { + "sha512": "59tBslAk9733NXLrUJrwNZEzbMAcu8k344OYo+wfSVygcgZ9lgBdGIzH/nrg3LYhXceynyvTc8t5/GD4Ri0/ng==", + "type": "package", + "path": "system.reflection.emit.ilgeneration/4.3.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "ThirdPartyNotices.txt", + "dotnet_library_license.txt", + "lib/MonoAndroid10/_._", + "lib/MonoTouch10/_._", + "lib/net45/_._", + "lib/netcore50/System.Reflection.Emit.ILGeneration.dll", + "lib/netstandard1.3/System.Reflection.Emit.ILGeneration.dll", + "lib/portable-net45+wp8/_._", + "lib/wp80/_._", + "lib/xamarinios10/_._", + "lib/xamarinmac20/_._", + "lib/xamarintvos10/_._", + "lib/xamarinwatchos10/_._", + "ref/MonoAndroid10/_._", + "ref/MonoTouch10/_._", + "ref/net45/_._", + "ref/netstandard1.0/System.Reflection.Emit.ILGeneration.dll", + "ref/netstandard1.0/System.Reflection.Emit.ILGeneration.xml", + "ref/netstandard1.0/de/System.Reflection.Emit.ILGeneration.xml", + "ref/netstandard1.0/es/System.Reflection.Emit.ILGeneration.xml", + "ref/netstandard1.0/fr/System.Reflection.Emit.ILGeneration.xml", + "ref/netstandard1.0/it/System.Reflection.Emit.ILGeneration.xml", + "ref/netstandard1.0/ja/System.Reflection.Emit.ILGeneration.xml", + "ref/netstandard1.0/ko/System.Reflection.Emit.ILGeneration.xml", + "ref/netstandard1.0/ru/System.Reflection.Emit.ILGeneration.xml", + "ref/netstandard1.0/zh-hans/System.Reflection.Emit.ILGeneration.xml", + "ref/netstandard1.0/zh-hant/System.Reflection.Emit.ILGeneration.xml", + "ref/portable-net45+wp8/_._", + "ref/wp80/_._", + "ref/xamarinios10/_._", + "ref/xamarinmac20/_._", + "ref/xamarintvos10/_._", + "ref/xamarinwatchos10/_._", + "runtimes/aot/lib/netcore50/_._", + "system.reflection.emit.ilgeneration.4.3.0.nupkg.sha512", + "system.reflection.emit.ilgeneration.nuspec" + ] + }, + "System.Reflection.Emit.Lightweight/4.3.0": { + "sha512": "oadVHGSMsTmZsAF864QYN1t1QzZjIcuKU3l2S9cZOwDdDueNTrqq1yRj7koFfIGEnKpt6NjpL3rOzRhs4ryOgA==", + "type": "package", + "path": "system.reflection.emit.lightweight/4.3.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "ThirdPartyNotices.txt", + "dotnet_library_license.txt", + "lib/MonoAndroid10/_._", + "lib/MonoTouch10/_._", + "lib/net45/_._", + "lib/netcore50/System.Reflection.Emit.Lightweight.dll", + "lib/netstandard1.3/System.Reflection.Emit.Lightweight.dll", + "lib/portable-net45+wp8/_._", + "lib/wp80/_._", + "lib/xamarinios10/_._", + "lib/xamarinmac20/_._", + "lib/xamarintvos10/_._", + "lib/xamarinwatchos10/_._", + "ref/MonoAndroid10/_._", + "ref/MonoTouch10/_._", + "ref/net45/_._", + "ref/netstandard1.0/System.Reflection.Emit.Lightweight.dll", + "ref/netstandard1.0/System.Reflection.Emit.Lightweight.xml", + "ref/netstandard1.0/de/System.Reflection.Emit.Lightweight.xml", + "ref/netstandard1.0/es/System.Reflection.Emit.Lightweight.xml", + "ref/netstandard1.0/fr/System.Reflection.Emit.Lightweight.xml", + "ref/netstandard1.0/it/System.Reflection.Emit.Lightweight.xml", + "ref/netstandard1.0/ja/System.Reflection.Emit.Lightweight.xml", + "ref/netstandard1.0/ko/System.Reflection.Emit.Lightweight.xml", + "ref/netstandard1.0/ru/System.Reflection.Emit.Lightweight.xml", + "ref/netstandard1.0/zh-hans/System.Reflection.Emit.Lightweight.xml", + "ref/netstandard1.0/zh-hant/System.Reflection.Emit.Lightweight.xml", + "ref/portable-net45+wp8/_._", + "ref/wp80/_._", + "ref/xamarinios10/_._", + "ref/xamarinmac20/_._", + "ref/xamarintvos10/_._", + "ref/xamarinwatchos10/_._", + "runtimes/aot/lib/netcore50/_._", + "system.reflection.emit.lightweight.4.3.0.nupkg.sha512", + "system.reflection.emit.lightweight.nuspec" + ] + }, "System.Reflection.Metadata/5.0.0": { "sha512": "5NecZgXktdGg34rh1OenY1rFNDCI8xSjFr+Z4OU4cU06AQHUdRnIIEeWENu3Wl4YowbzkymAIMvi3WyK9U53pQ==", "type": "package", @@ -7105,6 +7893,38 @@ "system.runtime.interopservices.nuspec" ] }, + "System.Runtime.Loader/4.3.0": { + "sha512": "DHMaRn8D8YCK2GG2pw+UzNxn/OHVfaWx7OTLBD/hPegHZZgcZh3H6seWegrC4BYwsfuGrywIuT+MQs+rPqRLTQ==", + "type": "package", + "path": "system.runtime.loader/4.3.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "ThirdPartyNotices.txt", + "dotnet_library_license.txt", + "lib/MonoAndroid10/_._", + "lib/MonoTouch10/_._", + "lib/net462/_._", + "lib/netstandard1.5/System.Runtime.Loader.dll", + "lib/xamarinios10/_._", + "lib/xamarinmac20/_._", + "lib/xamarintvos10/_._", + "lib/xamarinwatchos10/_._", + "ref/netstandard1.5/System.Runtime.Loader.dll", + "ref/netstandard1.5/System.Runtime.Loader.xml", + "ref/netstandard1.5/de/System.Runtime.Loader.xml", + "ref/netstandard1.5/es/System.Runtime.Loader.xml", + "ref/netstandard1.5/fr/System.Runtime.Loader.xml", + "ref/netstandard1.5/it/System.Runtime.Loader.xml", + "ref/netstandard1.5/ja/System.Runtime.Loader.xml", + "ref/netstandard1.5/ko/System.Runtime.Loader.xml", + "ref/netstandard1.5/ru/System.Runtime.Loader.xml", + "ref/netstandard1.5/zh-hans/System.Runtime.Loader.xml", + "ref/netstandard1.5/zh-hant/System.Runtime.Loader.xml", + "system.runtime.loader.4.3.0.nupkg.sha512", + "system.runtime.loader.nuspec" + ] + }, "System.Security.AccessControl/4.5.0": { "sha512": "vW8Eoq0TMyz5vAG/6ce483x/CP83fgm4SJe5P8Tb1tZaobcvPrbMEL7rhH1DRdrYbbb6F0vq3OlzmK0Pkwks5A==", "type": "package", @@ -7243,6 +8063,47 @@ "useSharedDesignerContext.txt" ] }, + "System.Security.Cryptography.ProtectedData/4.5.0": { + "sha512": "wLBKzFnDCxP12VL9ANydSYhk59fC4cvOr9ypYQLPnAj48NQIhqnjdD2yhP8yEKyBJEjERWS9DisKL7rX5eU25Q==", + "type": "package", + "path": "system.security.cryptography.protecteddata/4.5.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "lib/MonoAndroid10/_._", + "lib/MonoTouch10/_._", + "lib/net46/System.Security.Cryptography.ProtectedData.dll", + "lib/net461/System.Security.Cryptography.ProtectedData.dll", + "lib/netstandard1.3/System.Security.Cryptography.ProtectedData.dll", + "lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll", + "lib/xamarinios10/_._", + "lib/xamarinmac20/_._", + "lib/xamarintvos10/_._", + "lib/xamarinwatchos10/_._", + "ref/MonoAndroid10/_._", + "ref/MonoTouch10/_._", + "ref/net46/System.Security.Cryptography.ProtectedData.dll", + "ref/net461/System.Security.Cryptography.ProtectedData.dll", + "ref/net461/System.Security.Cryptography.ProtectedData.xml", + "ref/netstandard1.3/System.Security.Cryptography.ProtectedData.dll", + "ref/netstandard2.0/System.Security.Cryptography.ProtectedData.dll", + "ref/netstandard2.0/System.Security.Cryptography.ProtectedData.xml", + "ref/xamarinios10/_._", + "ref/xamarinmac20/_._", + "ref/xamarintvos10/_._", + "ref/xamarinwatchos10/_._", + "runtimes/win/lib/net46/System.Security.Cryptography.ProtectedData.dll", + "runtimes/win/lib/net461/System.Security.Cryptography.ProtectedData.dll", + "runtimes/win/lib/netstandard1.3/System.Security.Cryptography.ProtectedData.dll", + "runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll", + "system.security.cryptography.protecteddata.4.5.0.nupkg.sha512", + "system.security.cryptography.protecteddata.nuspec", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, "System.Security.Cryptography.Xml/7.0.1": { "sha512": "MCxBCtH0GrDuvU63ZODwQHQZPchb24pUAX3MfZ6b13qg246ZD10PRdOvay8C9HBPfCXkymUNwFPEegud7ax2zg==", "type": "package", @@ -7270,6 +8131,27 @@ "useSharedDesignerContext.txt" ] }, + "System.Security.Permissions/4.5.0": { + "sha512": "9gdyuARhUR7H+p5CjyUB/zPk7/Xut3wUSP8NJQB6iZr8L3XUXTMdoLeVAg9N4rqF8oIpE7MpdqHdDHQ7XgJe0g==", + "type": "package", + "path": "system.security.permissions/4.5.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "lib/net461/System.Security.Permissions.dll", + "lib/netstandard2.0/System.Security.Permissions.dll", + "ref/net461/System.Security.Permissions.dll", + "ref/net461/System.Security.Permissions.xml", + "ref/netstandard2.0/System.Security.Permissions.dll", + "ref/netstandard2.0/System.Security.Permissions.xml", + "system.security.permissions.4.5.0.nupkg.sha512", + "system.security.permissions.nuspec", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, "System.Security.Principal.Windows/4.5.0": { "sha512": "U77HfRXlZlOeIXd//Yoj6Jnk8AXlbeisf1oq1os+hxOGVnuG+lGSfGqTwTZBoORFF6j/0q7HXIl8cqwQ9aUGqQ==", "type": "package", @@ -7743,6 +8625,45 @@ "system.threading.nuspec" ] }, + "System.Threading.AccessControl/4.5.0": { + "sha512": "ZU4JNV9eHPw3TAdIJCDH07u9EfGFGgNJnaga8aFjcdvIIZKq4A+ZqaQNvUMFIbdCMPceYzt8JT5MdYIXAOlJ9A==", + "type": "package", + "path": "system.threading.accesscontrol/4.5.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "lib/net46/System.Threading.AccessControl.dll", + "lib/net461/System.Threading.AccessControl.dll", + "lib/netstandard1.3/System.Threading.AccessControl.dll", + "lib/netstandard2.0/System.Threading.AccessControl.dll", + "ref/net46/System.Threading.AccessControl.dll", + "ref/net461/System.Threading.AccessControl.dll", + "ref/net461/System.Threading.AccessControl.xml", + "ref/netstandard1.3/System.Threading.AccessControl.dll", + "ref/netstandard1.3/System.Threading.AccessControl.xml", + "ref/netstandard1.3/de/System.Threading.AccessControl.xml", + "ref/netstandard1.3/es/System.Threading.AccessControl.xml", + "ref/netstandard1.3/fr/System.Threading.AccessControl.xml", + "ref/netstandard1.3/it/System.Threading.AccessControl.xml", + "ref/netstandard1.3/ja/System.Threading.AccessControl.xml", + "ref/netstandard1.3/ko/System.Threading.AccessControl.xml", + "ref/netstandard1.3/ru/System.Threading.AccessControl.xml", + "ref/netstandard1.3/zh-hans/System.Threading.AccessControl.xml", + "ref/netstandard1.3/zh-hant/System.Threading.AccessControl.xml", + "ref/netstandard2.0/System.Threading.AccessControl.dll", + "ref/netstandard2.0/System.Threading.AccessControl.xml", + "runtimes/win/lib/net46/System.Threading.AccessControl.dll", + "runtimes/win/lib/net461/System.Threading.AccessControl.dll", + "runtimes/win/lib/netstandard1.3/System.Threading.AccessControl.dll", + "runtimes/win/lib/netstandard2.0/System.Threading.AccessControl.dll", + "system.threading.accesscontrol.4.5.0.nupkg.sha512", + "system.threading.accesscontrol.nuspec", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, "System.Threading.Tasks/4.3.0": { "sha512": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", "type": "package", @@ -8105,6 +9026,25 @@ "system.xml.xpath.xmldocument.4.3.0.nupkg.sha512", "system.xml.xpath.xmldocument.nuspec" ] + }, + "Telerik.Reporting/15.1.21.616": { + "sha512": "REOxoBLc1NG+h9VVjv6d42zwIXyoRkImcpiRXdVswPpdA3ygMufzj/zfSDoTMC3SYtEIeYGAmEVmKo8pNswThA==", + "type": "package", + "path": "telerik.reporting/15.1.21.616", + "files": [ + ".nupkg.metadata", + "LicenseAgreements/EULA.txt", + "images/reporting.png", + "lib/net40/Telerik.Reporting.OpenXmlRendering.2.7.2.dll", + "lib/net40/Telerik.Reporting.XpsRendering.dll", + "lib/net40/Telerik.Reporting.dll", + "lib/netcoreapp2.0/SQLite-net.dll", + "lib/netcoreapp2.0/Telerik.Reporting.dll", + "lib/netstandard2.0/SQLite-net.dll", + "lib/netstandard2.0/Telerik.Reporting.dll", + "telerik.reporting.15.1.21.616.nupkg.sha512", + "telerik.reporting.nuspec" + ] } }, "projectFileDependencyGroups": { @@ -8160,7 +9100,8 @@ "System.Xml.XDocument >= 4.3.0", "System.Xml.XPath >= 4.3.0", "System.Xml.XPath.XmlDocument >= 4.3.0", - "System.Xml.XmlDocument >= 4.3.0" + "System.Xml.XmlDocument >= 4.3.0", + "Telerik.Reporting >= 15.1.21.616" ] }, "packageFolders": { @@ -8419,6 +9360,10 @@ "System.Xml.XmlDocument": { "target": "Package", "version": "[4.3.0, )" + }, + "Telerik.Reporting": { + "target": "Package", + "version": "[15.1.21.616, )" } }, "imports": [ diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache index 1ca8f7f..e18526e 100644 --- a/obj/project.nuget.cache +++ b/obj/project.nuget.cache @@ -1,6 +1,6 @@ { "version": 2, - "dgSpecHash": "lByyu16jl2jM556O1T8dlyIx/VDvFB2JFOMrmhKkLT/k8+b+gPmdOXJ2gFJPebo7exLXNtdXcjhUf29jzv3G5g==", + "dgSpecHash": "mgE8pAxImCYHiVLKMjnx+5DEGjPO3U/4vvPl9o5d7ruTNErl7pEqOFIZz2PoSywzj6Qimx+tPqEeIJl1N5oJow==", "success": true, "projectFilePath": "D:\\BMA-EHR-Recurit-Exam-Service\\BMA.EHR.Recurit.Exam.Service.csproj", "expectedPackageFiles": [ @@ -75,7 +75,7 @@ "C:\\Users\\M\\.nuget\\packages\\microsoft.extensions.caching.memory\\7.0.0\\microsoft.extensions.caching.memory.7.0.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\microsoft.extensions.configuration\\7.0.0\\microsoft.extensions.configuration.7.0.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\microsoft.extensions.configuration.abstractions\\7.0.0\\microsoft.extensions.configuration.abstractions.7.0.0.nupkg.sha512", - "C:\\Users\\M\\.nuget\\packages\\microsoft.extensions.configuration.binder\\2.0.0\\microsoft.extensions.configuration.binder.2.0.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\microsoft.extensions.configuration.binder\\2.1.1\\microsoft.extensions.configuration.binder.2.1.1.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\microsoft.extensions.configuration.fileextensions\\7.0.0\\microsoft.extensions.configuration.fileextensions.7.0.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\microsoft.extensions.configuration.json\\7.0.0\\microsoft.extensions.configuration.json.7.0.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\microsoft.extensions.dependencyinjection\\7.0.0\\microsoft.extensions.dependencyinjection.7.0.0.nupkg.sha512", @@ -112,6 +112,10 @@ "C:\\Users\\M\\.nuget\\packages\\newtonsoft.json\\13.0.1\\newtonsoft.json.13.0.1.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\newtonsoft.json.bson\\1.0.2\\newtonsoft.json.bson.1.0.2.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\pomelo.entityframeworkcore.mysql\\7.0.0\\pomelo.entityframeworkcore.mysql.7.0.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\runtime.native.system.data.sqlclient.sni\\4.5.0\\runtime.native.system.data.sqlclient.sni.4.5.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\runtime.win-arm64.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\runtime.win-x64.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\runtime.win-x86.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\serilog\\2.12.0\\serilog.2.12.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\serilog.aspnetcore\\6.1.0\\serilog.aspnetcore.6.1.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\serilog.enrichers.environment\\2.2.0\\serilog.enrichers.environment.2.2.0.nupkg.sha512", @@ -126,6 +130,10 @@ "C:\\Users\\M\\.nuget\\packages\\serilog.sinks.elasticsearch\\9.0.0\\serilog.sinks.elasticsearch.9.0.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\serilog.sinks.file\\5.0.0\\serilog.sinks.file.5.0.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\serilog.sinks.periodicbatching\\3.1.0\\serilog.sinks.periodicbatching.3.1.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\sqlitepclraw.bundle_green\\2.0.1\\sqlitepclraw.bundle_green.2.0.1.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\sqlitepclraw.core\\2.0.1\\sqlitepclraw.core.2.0.1.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\sqlitepclraw.lib.e_sqlite3\\2.0.1\\sqlitepclraw.lib.e_sqlite3.2.0.1.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\sqlitepclraw.provider.dynamic_cdecl\\2.0.1\\sqlitepclraw.provider.dynamic_cdecl.2.0.1.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\swashbuckle.aspnetcore\\6.4.0\\swashbuckle.aspnetcore.6.4.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\swashbuckle.aspnetcore.annotations\\6.5.0\\swashbuckle.aspnetcore.annotations.6.5.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\6.5.0\\swashbuckle.aspnetcore.swagger.6.5.0.nupkg.sha512", @@ -136,6 +144,9 @@ "C:\\Users\\M\\.nuget\\packages\\system.collections\\4.3.0\\system.collections.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.collections.immutable\\5.0.0\\system.collections.immutable.5.0.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.componentmodel.annotations\\5.0.0\\system.componentmodel.annotations.5.0.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\system.configuration.configurationmanager\\4.5.0\\system.configuration.configurationmanager.4.5.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\system.data.common\\4.3.0\\system.data.common.4.3.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\system.data.sqlclient\\4.6.0\\system.data.sqlclient.4.6.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.diagnostics.debug\\4.3.0\\system.diagnostics.debug.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.diagnostics.diagnosticsource\\6.0.0\\system.diagnostics.diagnosticsource.6.0.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.diagnostics.tools\\4.3.0\\system.diagnostics.tools.4.3.0.nupkg.sha512", @@ -146,8 +157,12 @@ "C:\\Users\\M\\.nuget\\packages\\system.io\\4.3.0\\system.io.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.io.filesystem\\4.3.0\\system.io.filesystem.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.io.filesystem.primitives\\4.3.0\\system.io.filesystem.primitives.4.3.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\system.io.packaging\\4.5.0\\system.io.packaging.4.5.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.memory\\4.5.4\\system.memory.4.5.4.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.reflection\\4.3.0\\system.reflection.4.3.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\system.reflection.emit\\4.3.0\\system.reflection.emit.4.3.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\system.reflection.emit.ilgeneration\\4.3.0\\system.reflection.emit.ilgeneration.4.3.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\system.reflection.emit.lightweight\\4.3.0\\system.reflection.emit.lightweight.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.reflection.metadata\\5.0.0\\system.reflection.metadata.5.0.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.reflection.primitives\\4.3.0\\system.reflection.primitives.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.reflection.typeextensions\\4.7.0\\system.reflection.typeextensions.4.7.0.nupkg.sha512", @@ -157,10 +172,13 @@ "C:\\Users\\M\\.nuget\\packages\\system.runtime.extensions\\4.3.0\\system.runtime.extensions.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.runtime.handles\\4.3.0\\system.runtime.handles.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.runtime.interopservices\\4.3.0\\system.runtime.interopservices.4.3.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\system.runtime.loader\\4.3.0\\system.runtime.loader.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.security.accesscontrol\\4.5.0\\system.security.accesscontrol.4.5.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.security.cryptography.cng\\4.5.0\\system.security.cryptography.cng.4.5.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.security.cryptography.pkcs\\7.0.0\\system.security.cryptography.pkcs.7.0.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\system.security.cryptography.protecteddata\\4.5.0\\system.security.cryptography.protecteddata.4.5.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.security.cryptography.xml\\7.0.1\\system.security.cryptography.xml.7.0.1.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\system.security.permissions\\4.5.0\\system.security.permissions.4.5.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.security.principal.windows\\4.5.0\\system.security.principal.windows.4.5.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.text.encoding.codepages\\7.0.0\\system.text.encoding.codepages.7.0.0.nupkg.sha512", @@ -169,13 +187,15 @@ "C:\\Users\\M\\.nuget\\packages\\system.text.json\\7.0.0\\system.text.json.7.0.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.text.regularexpressions\\4.3.0\\system.text.regularexpressions.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.threading\\4.3.0\\system.threading.4.3.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\system.threading.accesscontrol\\4.5.0\\system.threading.accesscontrol.4.5.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.threading.tasks\\4.3.0\\system.threading.tasks.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.threading.tasks.extensions\\4.5.4\\system.threading.tasks.extensions.4.5.4.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.xml.readerwriter\\4.3.1\\system.xml.readerwriter.4.3.1.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.xml.xdocument\\4.3.0\\system.xml.xdocument.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.xml.xmldocument\\4.3.0\\system.xml.xmldocument.4.3.0.nupkg.sha512", "C:\\Users\\M\\.nuget\\packages\\system.xml.xpath\\4.3.0\\system.xml.xpath.4.3.0.nupkg.sha512", - "C:\\Users\\M\\.nuget\\packages\\system.xml.xpath.xmldocument\\4.3.0\\system.xml.xpath.xmldocument.4.3.0.nupkg.sha512" + "C:\\Users\\M\\.nuget\\packages\\system.xml.xpath.xmldocument\\4.3.0\\system.xml.xpath.xmldocument.4.3.0.nupkg.sha512", + "C:\\Users\\M\\.nuget\\packages\\telerik.reporting\\15.1.21.616\\telerik.reporting.15.1.21.616.nupkg.sha512" ], "logs": [] } \ No newline at end of file