Class City
Inheritance
object
Entity<System.Guid>
BasicAggregateRoot<System.Guid>
AggregateRoot<System.Guid>
City
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.TestApp.Domain
Assembly: Volo.Abp.TestApp.dll
Syntax
public class City : AggregateRoot<Guid>, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IHasConcurrencyStamp
Constructors
City(Guid, string)
Declaration
public City(Guid id, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Guid | id | |
| string | name |
Properties
Districts
Declaration
public ICollection<District> Districts { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<T><District> |
Name
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetPopulation()
Declaration
public int GetPopulation()
Returns
| Type | Description |
|---|---|
| int |