mirror of https://github.com/abpframework/abp.git
6 changed files with 73 additions and 1 deletions
@ -0,0 +1,30 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Entities.Auditing; |
|||
|
|||
namespace Volo.Abp.TestApp.Domain |
|||
{ |
|||
public class District : CreationAuditedEntity |
|||
{ |
|||
public Guid CityId { get; private set; } |
|||
|
|||
public string Name { get; private set; } |
|||
|
|||
public int Population { get; set; } |
|||
|
|||
private District() |
|||
{ |
|||
|
|||
} |
|||
|
|||
public District(Guid cityId, string name, int population = 0) |
|||
{ |
|||
CityId = cityId; |
|||
Name = name; |
|||
} |
|||
|
|||
public override object[] GetKeys() |
|||
{ |
|||
return new Object[] {CityId, Name}; |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue