Class BusinessManager
Represents Business Manager.
Inheritance
System.Object
BusinessManager
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.BusinessFoundation.Data.Business
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public static class BusinessManager
Methods
Create(EntityObject)
Creates the specified request.
Declaration
public static PrimaryKeyId Create(EntityObject target)
Parameters
Type | Name | Description |
---|---|---|
EntityObject | target | The target. |
Returns
Type | Description |
---|---|
PrimaryKeyId |
Delete(EntityObject)
Deletes the specified entity object.
Declaration
public static void Delete(EntityObject entityObject)
Parameters
Type | Name | Description |
---|---|---|
EntityObject | entityObject | The entity object. |
Delete(String, PrimaryKeyId)
Creates the specified request.
Declaration
public static void Delete(string metaClassName, PrimaryKeyId primaryKeyId)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
PrimaryKeyId | primaryKeyId | The primary key id. |
Execute(Request)
Executes the specified request.
Declaration
public static Response Execute(Request request)
Parameters
Type | Name | Description |
---|---|---|
Request | request | The request. |
Returns
Type | Description |
---|---|
Response |
Execute<TRequest, TResponse>(TRequest)
Executes the specified request.
Declaration
public static TResponse Execute<TRequest, TResponse>(TRequest request)
where TRequest : Request where TResponse : Response
Parameters
Type | Name | Description |
---|---|---|
TRequest | request | The request. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TRequest | The type of the request. |
TResponse | The type of the response. |
InitializeEntity(String)
Initializes the entity.
Declaration
public static EntityObject InitializeEntity(string metaClassName)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
Returns
Type | Description |
---|---|
EntityObject |
InitializeEntity<T>(String)
Initializes the entity.
Declaration
public static T InitializeEntity<T>(string metaClassName)
where T : EntityObject
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
List(String, FilterElement[])
Declaration
public static EntityObject[] List(string metaClassName, FilterElement[] filters)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | |
FilterElement[] | filters |
Returns
Type | Description |
---|---|
EntityObject[] |
List(String, FilterElement[], SortingElement[])
Declaration
public static EntityObject[] List(string metaClassName, FilterElement[] filters, SortingElement[] sorting)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | |
FilterElement[] | filters | |
SortingElement[] | sorting |
Returns
Type | Description |
---|---|
EntityObject[] |
List(String, FilterElement[], SortingElement[], Nullable<Int32>, Nullable<Int32>)
Declaration
public static EntityObject[] List(string metaClassName, FilterElement[] filters, SortingElement[] sorting, int? start, int? count)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | |
FilterElement[] | filters | |
SortingElement[] | sorting | |
System.Nullable<System.Int32> | start | |
System.Nullable<System.Int32> | count |
Returns
Type | Description |
---|---|
EntityObject[] |
List(String, SortingElement[])
Declaration
public static EntityObject[] List(string metaClassName, SortingElement[] sorting)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | |
SortingElement[] | sorting |
Returns
Type | Description |
---|---|
EntityObject[] |
Load(String, PrimaryKeyId)
Creates the specified request.
Declaration
public static EntityObject Load(string metaClassName, PrimaryKeyId primaryKeyId)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
PrimaryKeyId | primaryKeyId | The primary key id. |
Returns
Type | Description |
---|---|
EntityObject |
Update(EntityObject)
Creates the specified request.
Declaration
public static void Update(EntityObject target)
Parameters
Type | Name | Description |
---|---|---|
EntityObject | target | The target. |