CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Server.ObjectFactoryAttribute Class Reference

Specifies that the data portal should invoke a factory object rather than the business object. More...

Inheritance diagram for Csla.Server.ObjectFactoryAttribute:

Public Member Functions

 ObjectFactoryAttribute (string factoryType)
 Creates an instance of the attribute. More...
 
 ObjectFactoryAttribute (string factoryType, string createMethod, string fetchMethod)
 Creates an instance of the attribute. More...
 
 ObjectFactoryAttribute (string factoryType, string fetchMethod)
 Creates an instance of the attribute. More...
 
 ObjectFactoryAttribute (string factoryType, string createMethod, string fetchMethod, string updateMethod, string deleteMethod)
 Creates an instance of the attribute. More...
 
 ObjectFactoryAttribute (string factoryType, string createMethod, string fetchMethod, string updateMethod, string deleteMethod, string executeMethod)
 Creates an instance of the attribute. More...
 
 ObjectFactoryAttribute (Type factoryType)
 Creates an instance of the attribute. More...
 
 ObjectFactoryAttribute (Type factoryType, string fetchMethod)
 Creates an instance of the attribute. More...
 
 ObjectFactoryAttribute (Type factoryType, string createMethod, string fetchMethod)
 Creates an instance of the attribute. More...
 
 ObjectFactoryAttribute (Type factoryType, string createMethod, string fetchMethod, string updateMethod, string deleteMethod)
 Creates an instance of the attribute. More...
 
 ObjectFactoryAttribute (Type factoryType, string createMethod, string fetchMethod, string updateMethod, string deleteMethod, string executeMethod)
 Creates an instance of the attribute. More...
 

Properties

string FactoryTypeName [get]
 Assembly qualified type name of the factory object. More...
 
string CreateMethodName [get]
 Name of the method to call for a create operation. More...
 
string FetchMethodName [get]
 Name of the method to call for a fetch operation. More...
 
string UpdateMethodName [get]
 Name of the method to call for a update operation. More...
 
string DeleteMethodName [get]
 Name of the method to call for a delete operation. More...
 
string ExecuteMethodName [get]
 Name of the method to call for a Execute operation. More...
 

Detailed Description

Specifies that the data portal should invoke a factory object rather than the business object.

Definition at line 22 of file ObjectFactoryAttribute.cs.

Constructor & Destructor Documentation

◆ ObjectFactoryAttribute() [1/10]

Csla.Server.ObjectFactoryAttribute.ObjectFactoryAttribute ( string  factoryType)

Creates an instance of the attribute.

Parameters
factoryTypeAssembly qualified type name of the factory object.

The method names default to Create, Fetch, Update and Delete.

Definition at line 92 of file ObjectFactoryAttribute.cs.

◆ ObjectFactoryAttribute() [2/10]

Csla.Server.ObjectFactoryAttribute.ObjectFactoryAttribute ( string  factoryType,
string  createMethod,
string  fetchMethod 
)

Creates an instance of the attribute.

Parameters
factoryTypeAssembly qualified type name of the factory object.
createMethodName of the method to call for a create operation.
fetchMethodName of the method to call for a fetch operation.

Definition at line 113 of file ObjectFactoryAttribute.cs.

◆ ObjectFactoryAttribute() [3/10]

Csla.Server.ObjectFactoryAttribute.ObjectFactoryAttribute ( string  factoryType,
string  fetchMethod 
)

Creates an instance of the attribute.

Parameters
factoryTypeAssembly qualified type name of the factory object.
fetchMethodName of the method to call for a fetch operation.

Definition at line 132 of file ObjectFactoryAttribute.cs.

◆ ObjectFactoryAttribute() [4/10]

Csla.Server.ObjectFactoryAttribute.ObjectFactoryAttribute ( string  factoryType,
string  createMethod,
string  fetchMethod,
string  updateMethod,
string  deleteMethod 
)

Creates an instance of the attribute.

Parameters
factoryTypeAssembly qualified type name of the factory object.
createMethodName of the method to call for a create operation.
fetchMethodName of the method to call for a fetch operation.
updateMethodName of the method to call for a update operation.
deleteMethodName of the method to call for a delete operation.

Definition at line 158 of file ObjectFactoryAttribute.cs.

◆ ObjectFactoryAttribute() [5/10]

Csla.Server.ObjectFactoryAttribute.ObjectFactoryAttribute ( string  factoryType,
string  createMethod,
string  fetchMethod,
string  updateMethod,
string  deleteMethod,
string  executeMethod 
)

Creates an instance of the attribute.

Parameters
factoryTypeAssembly qualified type name of the factory object.
createMethodName of the method to call for a create operation.
fetchMethodName of the method to call for a fetch operation.
updateMethodName of the method to call for a update operation.
deleteMethodName of the method to call for a delete operation.
executeMethodName of the method to call for a Execute operation.

Definition at line 190 of file ObjectFactoryAttribute.cs.

◆ ObjectFactoryAttribute() [6/10]

Csla.Server.ObjectFactoryAttribute.ObjectFactoryAttribute ( Type  factoryType)

Creates an instance of the attribute.

Parameters
factoryTypeThe type of factory class or interface.

Definition at line 207 of file ObjectFactoryAttribute.cs.

◆ ObjectFactoryAttribute() [7/10]

Csla.Server.ObjectFactoryAttribute.ObjectFactoryAttribute ( Type  factoryType,
string  fetchMethod 
)

Creates an instance of the attribute.

Parameters
factoryTypeThe type of factory class or interface.
fetchMethodName of the method to call for a fetch operation.

Definition at line 220 of file ObjectFactoryAttribute.cs.

◆ ObjectFactoryAttribute() [8/10]

Csla.Server.ObjectFactoryAttribute.ObjectFactoryAttribute ( Type  factoryType,
string  createMethod,
string  fetchMethod 
)

Creates an instance of the attribute.

Parameters
factoryTypeThe type of factory class or interface.
createMethodName of the method to call for a create operation.
fetchMethodName of the method to call for a fetch operation.

Definition at line 236 of file ObjectFactoryAttribute.cs.

◆ ObjectFactoryAttribute() [9/10]

Csla.Server.ObjectFactoryAttribute.ObjectFactoryAttribute ( Type  factoryType,
string  createMethod,
string  fetchMethod,
string  updateMethod,
string  deleteMethod 
)

Creates an instance of the attribute.

Parameters
factoryTypeThe type of factory class or interface.
createMethodName of the method to call for a create operation.
fetchMethodName of the method to call for a fetch operation.
updateMethodName of the method to call for a update operation.
deleteMethodName of the method to call for a delete operation.

Definition at line 258 of file ObjectFactoryAttribute.cs.

◆ ObjectFactoryAttribute() [10/10]

Csla.Server.ObjectFactoryAttribute.ObjectFactoryAttribute ( Type  factoryType,
string  createMethod,
string  fetchMethod,
string  updateMethod,
string  deleteMethod,
string  executeMethod 
)

Creates an instance of the attribute.

Parameters
factoryTypeThe type of factory class or interface.
createMethodName of the method to call for a create operation.
fetchMethodName of the method to call for a fetch operation.
updateMethodName of the method to call for a update operation.
deleteMethodName of the method to call for a delete operation.
executeMethodName of the method to call for a Execute operation.

Definition at line 283 of file ObjectFactoryAttribute.cs.

Property Documentation

◆ CreateMethodName

string Csla.Server.ObjectFactoryAttribute.CreateMethodName
get

Name of the method to call for a create operation.

The appropriate overload of this method will be invoked based on the parameters passed from the client.

Definition at line 48 of file ObjectFactoryAttribute.cs.

◆ DeleteMethodName

string Csla.Server.ObjectFactoryAttribute.DeleteMethodName
get

Name of the method to call for a delete operation.

The appropriate overload of this method will be invoked based on the parameters passed from the client.

Definition at line 72 of file ObjectFactoryAttribute.cs.

◆ ExecuteMethodName

string Csla.Server.ObjectFactoryAttribute.ExecuteMethodName
get

Name of the method to call for a Execute operation.

The appropriate overload of this method will be invoked based on the parameters passed from the client.

Definition at line 80 of file ObjectFactoryAttribute.cs.

◆ FactoryTypeName

string Csla.Server.ObjectFactoryAttribute.FactoryTypeName
get

Assembly qualified type name of the factory object.

Factory class must have a parameterless default constructor.

Definition at line 40 of file ObjectFactoryAttribute.cs.

◆ FetchMethodName

string Csla.Server.ObjectFactoryAttribute.FetchMethodName
get

Name of the method to call for a fetch operation.

The appropriate overload of this method will be invoked based on the parameters passed from the client.

Definition at line 56 of file ObjectFactoryAttribute.cs.

◆ UpdateMethodName

string Csla.Server.ObjectFactoryAttribute.UpdateMethodName
get

Name of the method to call for a update operation.

The appropriate overload of this method will be invoked based on the parameters passed from the client.

Definition at line 64 of file ObjectFactoryAttribute.cs.