erp-platform/api/src/Kurs.Platform.Domain/Entities/Host/Country.cs

45 lines
1.1 KiB
C#
Raw Normal View History

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; }
2025-06-27 07:15:36 +00:00
public int PhoneCode { get; set; }
public string TaxLabel { get; set; }
public bool ZipRequired { get; set; }
public bool StateRequired { get; set; }
2025-06-27 07:15:36 +00:00
public ICollection<City> Cities { get; set; }
2025-08-19 10:19:31 +00:00
protected Country() { }
public Country(
Guid id,
string code,
string name,
string groupName,
Guid? currencyId,
2025-08-19 10:19:31 +00:00
int phoneCode,
string taxLabel,
bool zipRequired = false,
bool stateRequired = false)
: base(id)
{
Code = code;
Name = name;
GroupName = groupName;
CurrencyId = currencyId;
2025-08-19 10:19:31 +00:00
PhoneCode = phoneCode;
TaxLabel = taxLabel;
ZipRequired = zipRequired;
StateRequired = stateRequired;
}
}