Changed domains, configured links between VisaApplication and Applicant,created generic repository and repositories for domains

This commit is contained in:
2024-08-14 18:49:42 +03:00
parent e0f9a0f10f
commit e3d0d05355
35 changed files with 237 additions and 80 deletions

View File

@@ -0,0 +1,21 @@
using Domains.LocationDomain;
namespace Domains.ApplicantDomain
{
/// Model of address
/// <remarks>Owned</remarks>
public class Address
{
/// Country part of address
public Country Country { get; set; } = null!;
/// City part of address
public City City { get; set; } = null!;
/// Street part of address
public string Street { get; set; } = null!;
/// Building part of address
public string Building { get; set; } = null!;
}
}

View File

@@ -1,4 +1,5 @@
using Domains.Common;
using Domains.LocationDomain;
using Domains.VisaApplicationDomain;
namespace Domains.ApplicantDomain
{
@@ -49,5 +50,8 @@ namespace Domains.ApplicantDomain
/// Is <see cref="Applicant"/> a non-resident
public bool IsNonResident { get; set; }
/// List of <see cref="Applicant"/>'s applications
public List<VisaApplication> VisaApplications { get; set; } = null!;
}
}

View File

@@ -1,6 +1,4 @@
using Domains.Common;
namespace Domains.ApplicantDomain
namespace Domains.ApplicantDomain
{
public class PlaceOfWork : IEntity
{
@@ -10,7 +8,7 @@ namespace Domains.ApplicantDomain
/// Name of hirer
public string Name { get; set; } = null!;
/// <see cref="Domains.Common.Address"/> of hirer
/// <see cref="ApplicantDomain.Address"/> of hirer
public Address Address { get; set; } = null!;
/// Phone number of hirer