Class EntityManager

Provides helpful methods for entity objects

Inheritance
System.Object
EntityManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Assets
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public sealed class EntityManager

Methods

Clone<T>(T)

Clones the specified entity.

Declaration
public static T Clone<T>(T entity)
    where T : EntityObject, new()
Parameters
Type Name Description
T entity

The entity.

Returns
Type Description
T
Type Parameters
Name Description
T

List<T>(String, FilterElement[])

Lists the specified class name.

Declaration
public static T[] List<T>(string className, params FilterElement[] filters)
    where T : EntityObject
Parameters
Type Name Description
System.String className

Name of the class.

FilterElement[] filters

The filters.

Returns
Type Description
T[]
Type Parameters
Name Description
T

List<T>(String, FilterElement[], SortingElement[])

Lists the specified class name.

Declaration
public static T[] List<T>(string className, FilterElement[] filters, SortingElement[] sorting)
    where T : EntityObject
Parameters
Type Name Description
System.String className

Name of the class.

FilterElement[] filters

The filters.

SortingElement[] sorting

The sorting.

Returns
Type Description
T[]
Type Parameters
Name Description
T

List<T>(String, FilterElement[], SortingElement[], Nullable<Int32>, Nullable<Int32>)

Lists the specified class name.

Declaration
public static T[] List<T>(string className, FilterElement[] filters, SortingElement[] sorting, int? start, int? count)
    where T : EntityObject
Parameters
Type Name Description
System.String className

Name of the class.

FilterElement[] filters

The filters.

SortingElement[] sorting

The sorting.

System.Nullable<System.Int32> start

The start.

System.Nullable<System.Int32> count

The count.

Returns
Type Description
T[]
Type Parameters
Name Description
T