Previous Docs Version

The documentation you are viewing is for a previous version of the Vendr product. Click here to jump to the current stable version.

EntityBase

API reference for EntityBase in Vendr, the eCommerce solution for Umbraco v8+

EntityBase

Base class for a Vendr entity

public abstract class EntityBase : IDeepCloneable

Inheritance

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)

Edit this page on GitHub

Site + logo design © 2024 Outfield Digital Ltd. Content contributions licensed under MIT.
Vendr® is a Registered Trademark of Outfield Digital Ltd.