Changed models, added Application layer models

This commit is contained in:
2024-08-15 14:54:23 +03:00
parent 1d8405b4ec
commit c1a4acf414
50 changed files with 628 additions and 647 deletions

View File

@@ -1,15 +1,14 @@
namespace Domains.LocationDomain
namespace Domains.LocationDomain;
/// Model of a city
public class City : IEntity
{
/// Model of a city
public class City : IEntity
{
/// Unique identifier of the <see cref="City"/>
public Guid Id { get; private set; } = Guid.NewGuid();
/// Unique identifier of the <see cref="City"/>
public Guid Id { get; private set; } = Guid.NewGuid();
/// Name of the city
public string Name { get; set; } = null!;
/// Name of the city
public string Name { get; set; } = null!;
/// <see cref="LocationDomain.Country"/> in which the city is located
public Country Country { get; set; } = null!;
}
}
/// <see cref="LocationDomain.Country"/> in which the city is located
public Country Country { get; set; } = null!;
}

View File

@@ -1,18 +1,17 @@
namespace Domains.LocationDomain
namespace Domains.LocationDomain;
/// Model of a country
public class Country : IEntity
{
/// Model of a country
public class Country : IEntity
{
/// Unique identifier of the <see cref="Country"/>
public Guid Id { get; private set; } = Guid.NewGuid();
/// Unique identifier of the <see cref="Country"/>
public Guid Id { get; private set; } = Guid.NewGuid();
/// Name of the country
public string Name { get; set; } = null!;
/// Name of the country
public string Name { get; set; } = null!;
/// Located in Schengen area
public bool IsSchengen { get; set; }
/// Located in Schengen area
public bool IsSchengen { get; set; }
/// List of <see cref="City"/> that country have
public List<City> Cities { get; set; } = null!;
}
}
/// List of <see cref="City"/> that country have
public List<City> Cities { get; set; } = null!;
}