Class Person
Inheritance
object
Entity<System.Guid>
BasicAggregateRoot<System.Guid>
AggregateRoot<System.Guid>
CreationAuditedAggregateRoot<System.Guid>
AuditedAggregateRoot<System.Guid>
FullAuditedAggregateRoot<System.Guid>
Person
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 Person : FullAuditedAggregateRoot<Guid>, IAggregateRoot<Guid>, IEntity<Guid>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IHasConcurrencyStamp, IFullAuditedObject, IAuditedObject, ICreationAuditedObject, IHasCreationTime, IMayHaveCreator, IModificationAuditedObject, IHasModificationTime, IDeletionAuditedObject, IHasDeletionTime, ISoftDelete, IMultiTenant
Constructors
Person(Guid, string, int, Guid?, Guid?)
Declaration
public Person(Guid id, string name, int age, Guid? tenantId = null, Guid? cityId = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Guid | id | |
| string | name | |
| int | age | |
| System.Guid? | tenantId | |
| System.Guid? | cityId |
Properties
Age
Declaration
public virtual int Age { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Birthday
Declaration
public virtual DateTime? Birthday { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime? |
CityId
Declaration
public virtual Guid? CityId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Guid? |
LastActive
Declaration
[DisableDateTimeNormalization]
public virtual DateTime? LastActive { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime? |
LastActiveTime
Declaration
public virtual DateTime LastActiveTime { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
Name
Declaration
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
NotMappedDateTime
Declaration
[NotMapped]
public virtual DateTime? NotMappedDateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime? |
Phones
Declaration
public virtual Collection<Phone> Phones { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.ObjectModel.Collection<T><Phone> |
TenantId
Declaration
public virtual Guid? TenantId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Guid? |
Methods
ChangeName(string)
Declaration
public virtual void ChangeName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |