Class Entity
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
[Serializable]
[DataContract(IsReference = true)]
public abstract class Entity : TracksChangesEntityBase, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Properties
CreateDate
Gets or sets the Created Date
Declaration
[DataMember]
public DateTime CreateDate { get; set; }
Property Value
Type |
Description |
System.DateTime |
|
DeletedDate
Declaration
[IgnoreDataMember]
public DateTime? DeletedDate { get; set; }
Property Value
Type |
Description |
System.Nullable<System.DateTime> |
|
HasIdentity
Indicates whether the current entity has an identity, eg. Id.
Declaration
[DataMember]
public virtual bool HasIdentity { get; protected set; }
Property Value
Type |
Description |
System.Boolean |
|
Id
Declaration
[DataMember]
public int Id { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Key
Declaration
[DataMember]
public Guid Key { get; set; }
Property Value
Type |
Description |
System.Guid |
|
UpdateDate
Gets or sets the Modified Date
Declaration
[DataMember]
public DateTime UpdateDate { get; set; }
Property Value
Type |
Description |
System.DateTime |
|
Methods
DeepClone()
Declaration
public virtual object DeepClone()
Returns
Type |
Description |
System.Object |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(Entity)
Declaration
public virtual bool Equals(Entity other)
Parameters
Type |
Name |
Description |
Entity |
other |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
GetRealType()
Declaration
public virtual Type GetRealType()
Returns
Type |
Description |
System.Type |
|
SameIdentityAs(Entity)
Declaration
public virtual bool SameIdentityAs(Entity other)
Parameters
Type |
Name |
Description |
Entity |
other |
|
Returns
Type |
Description |
System.Boolean |
|
SameIdentityAs(IEntity)
Declaration
public virtual bool SameIdentityAs(IEntity other)
Parameters
Type |
Name |
Description |
IEntity |
other |
|
Returns
Type |
Description |
System.Boolean |
|