erp-platform/api/src/Kurs.Platform.Domain/Entities/Host/Country.cs
2025-10-30 17:10:13 +03:00

44 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing;
namespace Kurs.Platform.Entities;
public class Country : FullAuditedEntity<Guid>
{
public string Code { get; set; } // TR, US
public string Name { get; set; }
public string GroupName { get; set; }
public Guid? CurrencyId { get; set; }
public int PhoneCode { get; set; }
public string TaxLabel { get; set; }
public bool ZipRequired { get; set; }
public bool StateRequired { get; set; }
public ICollection<City> Cities { get; set; }
protected Country() { }
public Country(
Guid id,
string code,
string name,
string groupName,
Guid? currencyId,
int phoneCode,
string taxLabel,
bool zipRequired = false,
bool stateRequired = false)
: base(id)
{
Code = code;
Name = name;
GroupName = groupName;
CurrencyId = currencyId;
PhoneCode = phoneCode;
TaxLabel = taxLabel;
ZipRequired = zipRequired;
StateRequired = stateRequired;
}
}