erp-platform/api/src/Kurs.Platform.Domain/Entities/Definitions/City.cs

28 lines
687 B
C#
Raw Normal View History

using System;
2025-08-18 21:25:09 +00:00
using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing;
namespace Kurs.Platform.Entities;
2025-06-27 07:15:36 +00:00
public class City : FullAuditedEntity<Guid>
{
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
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;
}
}