2025-06-18 10:29:25 +00:00
|
|
|
using System;
|
2025-08-18 21:25:09 +00:00
|
|
|
using System.Collections.Generic;
|
2025-06-18 10:29:25 +00:00
|
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
|
|
|
|
|
|
|
|
namespace Kurs.Platform.Entities;
|
|
|
|
|
|
2025-06-27 07:15:36 +00:00
|
|
|
public class City : FullAuditedEntity<Guid>
|
2025-06-18 10:29:25 +00:00
|
|
|
{
|
2025-08-19 10:19:31 +00:00
|
|
|
public string CountryCode { get; set; }
|
2025-08-18 21:25:09 +00:00
|
|
|
public string Name { get; set; }
|
2025-08-19 10:19:31 +00:00
|
|
|
public string Code { get; set; }
|
2025-08-18 21:25:09 +00:00
|
|
|
public string PlateCode { get; set; }
|
2025-08-19 10:19:31 +00:00
|
|
|
|
2025-06-18 10:29:25 +00:00
|
|
|
public Country Country { get; set; }
|
2025-08-19 10:19:31 +00:00
|
|
|
public ICollection<District> Districts { get; set; }
|
|
|
|
|
|
|
|
|
|
protected City() { }
|
2025-08-18 21:25:09 +00:00
|
|
|
|
2025-08-19 10:19:31 +00:00
|
|
|
public City(Guid id, string countryCode, string name, string code, string plateCode)
|
|
|
|
|
: base(id)
|
|
|
|
|
{
|
|
|
|
|
CountryCode = countryCode;
|
|
|
|
|
Name = name;
|
|
|
|
|
Code = code;
|
|
|
|
|
PlateCode = plateCode;
|
|
|
|
|
}
|
2025-06-18 10:29:25 +00:00
|
|
|
}
|