Interface defining the members of the data portal type. More...
Public Member Functions | |
Task< object > | CreateAsync (params object[] criteria) |
Starts an asynchronous data portal operation to create a business object. More... | |
Task< object > | FetchAsync (params object[] criteria) |
Starts an asynchronous data portal operation to create a business object. More... | |
Task< object > | UpdateAsync (object obj) |
Called by a factory method in a business class or by the UI to update an object. More... | |
Task< object > | ExecuteAsync (object command) |
Called by a factory method in a business class or by the UI to execute a command object. More... | |
Task | DeleteAsync (params object[] criteria) |
Called by a factory method in a business class or by the UI to delete an object. More... | |
object | Create (params object[] criteria) |
Called by a factory method in a business class to create a new object, which is loaded with default values from the database. More... | |
object | Fetch (params object[] criteria) |
Called by a factory method in a business class to retrieve an object, which is loaded with values from the database. More... | |
object | Execute (object obj) |
Called to execute a Command object on the server. More... | |
object | Update (object obj) |
Insert, update or delete an object in the database. More... | |
void | Delete (params object[] criteria) |
Called by a Shared (static in C#) method in the business class to cause immediate deletion of a specific object from the database. More... | |
Task< T > | CreateAsync (params object[] criteria) |
Starts an asynchronous data portal operation to create a business object. More... | |
Task< T > | FetchAsync (params object[] criteria) |
Starts an asynchronous data portal operation to create a business object. More... | |
Task< T > | UpdateAsync (T obj) |
Called by a factory method in a business class or by the UI to update an object. More... | |
Task< T > | ExecuteAsync (T command) |
Called by a factory method in a business class or by the UI to execute a command object. More... | |
Task | DeleteAsync (params object[] criteria) |
Called by a factory method in a business class or by the UI to delete an object. More... | |
T | Create (params object[] criteria) |
Called by a factory method in a business class to create a new object, which is loaded with default values from the database. More... | |
T | Fetch (params object[] criteria) |
Called by a factory method in a business class to retrieve an object, which is loaded with values from the database. More... | |
T | Execute (T obj) |
Called to execute a Command object on the server. More... | |
T | Update (T obj) |
Called by the business object's Save() method to insert, update or delete an object in the database. More... | |
void | Delete (params object[] criteria) |
Called by a Shared (static in C#) method in the business class to cause immediate deletion of a specific object from the database. More... | |
Interface defining the members of the data portal type.
T |
Definition at line 16 of file IDataPortalT.cs.
object Csla.IDataPortal< T >.Create | ( | params object[] | criteria | ) |
Called by a factory method in a business class to create a new object, which is loaded with default values from the database.
criteria | Object-specific criteria. |
Implemented in Csla.DataPortal< T >.
T Csla.IDataPortal< T >.Create | ( | params object[] | criteria | ) |
Called by a factory method in a business class to create a new object, which is loaded with default values from the database.
criteria | Object-specific criteria. |
Implemented in Csla.DataPortal< T >.
Task< object > Csla.IDataPortal< T >.CreateAsync | ( | params object[] | criteria | ) |
Starts an asynchronous data portal operation to create a business object.
criteria | Criteria describing the object to create. |
Implemented in Csla.DataPortal< T >.
Task< T > Csla.IDataPortal< T >.CreateAsync | ( | params object[] | criteria | ) |
Starts an asynchronous data portal operation to create a business object.
criteria | Criteria describing the object to create. |
Implemented in Csla.DataPortal< T >.
void Csla.IDataPortal< T >.Delete | ( | params object[] | criteria | ) |
Called by a Shared (static in C#) method in the business class to cause immediate deletion of a specific object from the database.
criteria | Object-specific criteria. |
Implemented in Csla.DataPortal< T >.
void Csla.IDataPortal< T >.Delete | ( | params object[] | criteria | ) |
Called by a Shared (static in C#) method in the business class to cause immediate deletion of a specific object from the database.
criteria | Object-specific criteria. |
Implemented in Csla.DataPortal< T >.
Task Csla.IDataPortal< T >.DeleteAsync | ( | params object[] | criteria | ) |
Called by a factory method in a business class or by the UI to delete an object.
criteria | Object-specific criteria. |
Implemented in Csla.DataPortal< T >.
Task Csla.IDataPortal< T >.DeleteAsync | ( | params object[] | criteria | ) |
Called by a factory method in a business class or by the UI to delete an object.
criteria | Object-specific criteria. |
Implemented in Csla.DataPortal< T >.
object Csla.IDataPortal< T >.Execute | ( | object | obj | ) |
Called to execute a Command object on the server.
To be a Command object, the object must inherit from CommandBase.
Note that this method returns a reference to the updated business object. If the server-side DataPortal is running remotely, this will be a new and different object from the original, and all object references MUST be updated to use this new object.
On the server, the Command object's DataPortal_Execute() method will be invoked and on an ObjectFactory the Execute method will be invoked. Write any server-side code in that method.
obj | A reference to the Command object to be executed. |
T Csla.IDataPortal< T >.Execute | ( | T | obj | ) |
Called to execute a Command object on the server.
To be a Command object, the object must inherit from CommandBase.
Note that this method returns a reference to the updated business object. If the server-side DataPortal is running remotely, this will be a new and different object from the original, and all object references MUST be updated to use this new object.
On the server, the Command object's DataPortal_Execute() method will be invoked and on an ObjectFactory the Execute method will be invoked. Write any server-side code in that method.
obj | A reference to the Command object to be executed. |
Implemented in Csla.DataPortal< T >.
Task< object > Csla.IDataPortal< T >.ExecuteAsync | ( | object | command | ) |
Called by a factory method in a business class or by the UI to execute a command object.
command | Command object to execute. |
Task< T > Csla.IDataPortal< T >.ExecuteAsync | ( | T | command | ) |
Called by a factory method in a business class or by the UI to execute a command object.
command | Command object to execute. |
Implemented in Csla.DataPortal< T >.
object Csla.IDataPortal< T >.Fetch | ( | params object[] | criteria | ) |
Called by a factory method in a business class to retrieve an object, which is loaded with values from the database.
criteria | Object-specific criteria. |
Implemented in Csla.DataPortal< T >.
T Csla.IDataPortal< T >.Fetch | ( | params object[] | criteria | ) |
Called by a factory method in a business class to retrieve an object, which is loaded with values from the database.
criteria | Object-specific criteria. |
Implemented in Csla.DataPortal< T >.
Task< object > Csla.IDataPortal< T >.FetchAsync | ( | params object[] | criteria | ) |
Starts an asynchronous data portal operation to create a business object.
criteria | Criteria describing the object to create. |
Implemented in Csla.DataPortal< T >.
Task< T > Csla.IDataPortal< T >.FetchAsync | ( | params object[] | criteria | ) |
Starts an asynchronous data portal operation to create a business object.
criteria | Criteria describing the object to create. |
Implemented in Csla.DataPortal< T >.
object Csla.IDataPortal< T >.Update | ( | object | obj | ) |
Insert, update or delete an object in the database.
Note that this method returns a reference to the updated business object. If the server-side DataPortal is running remotely, this will be a new and different object from the original, and all object references MUST be updated to use this new object.
obj | A reference to the business object to be updated. |
T Csla.IDataPortal< T >.Update | ( | T | obj | ) |
Called by the business object's Save() method to insert, update or delete an object in the database.
Note that this method returns a reference to the updated business object. If the server-side DataPortal is running remotely, this will be a new and different object from the original, and all object references MUST be updated to use this new object.
obj | A reference to the business object to be updated. |
Implemented in Csla.DataPortal< T >.
Task< object > Csla.IDataPortal< T >.UpdateAsync | ( | object | obj | ) |
Called by a factory method in a business class or by the UI to update an object.
obj | Object to update. |
Task< T > Csla.IDataPortal< T >.UpdateAsync | ( | T | obj | ) |
Called by a factory method in a business class or by the UI to update an object.
obj | Object to update. |
Implemented in Csla.DataPortal< T >.