58 lines
No EOL
1.3 KiB
C#
58 lines
No EOL
1.3 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 string CurrencyCode { 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,
|
|
string currentyCode,
|
|
int phoneCode,
|
|
string taxLabel,
|
|
bool zipRequired = false,
|
|
bool stateRequired = false)
|
|
: base(id)
|
|
{
|
|
Code = code;
|
|
Name = name;
|
|
GroupName = groupName;
|
|
CurrencyCode = currentyCode;
|
|
PhoneCode = phoneCode;
|
|
TaxLabel = taxLabel;
|
|
ZipRequired = zipRequired;
|
|
StateRequired = stateRequired;
|
|
}
|
|
}
|
|
|
|
public class CountryGroup : FullAuditedEntity<Guid>
|
|
{
|
|
public string Name { get; set; }
|
|
|
|
protected CountryGroup() { }
|
|
|
|
public CountryGroup(
|
|
Guid id,
|
|
string name)
|
|
: base(id)
|
|
{
|
|
Name = name;
|
|
}
|
|
} |