27 lines
687 B
C#
27 lines
687 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
|
|
namespace Kurs.Platform.Entities;
|
|
|
|
public class City : FullAuditedEntity<Guid>
|
|
{
|
|
public string CountryCode { get; set; }
|
|
public string Name { get; set; }
|
|
public string Code { get; set; }
|
|
public string PlateCode { get; set; }
|
|
|
|
public Country Country { get; set; }
|
|
public ICollection<District> Districts { get; set; }
|
|
|
|
protected City() { }
|
|
|
|
public City(Guid id, string countryCode, string name, string code, string plateCode)
|
|
: base(id)
|
|
{
|
|
CountryCode = countryCode;
|
|
Name = name;
|
|
Code = code;
|
|
PlateCode = plateCode;
|
|
}
|
|
}
|