EntityBase
Base class for a Vendr entity
public abstract class EntityBase : IDeepCloneable
Inheritance
- interface IDeepCloneable
Namespace
Properties
Id
Gets the ID of the entity
public abstract Guid Id { get; }
Methods
DeepClone
Deep clones the entity and all of it's child entities
public abstract object DeepClone()
Returns
A deep clones entity instance
Equals
Compares the entity against another entity for equality
public override bool Equals(object obj)
Parameters
Parameter | Description |
---|---|
obj |
The entity to compare against |
Returns
Returns true
if the two entities are equal, otherwise returns false
.
GetHashCode
public override int GetHashCode()
Operators
EntityBase Equality
public static bool operator ==(EntityBase a, EntityBase b)
EntityBase Explicit
public static explicit operator Guid(EntityBase entity)
EntityBase Inequality
public static bool operator !=(EntityBase a, EntityBase b)