Client side data portal used for making asynchronous data portal calls in .NET. More...
Public Member Functions | |
DataPortal (ApplicationContext applicationContext, DataPortalClient.IDataPortalProxy proxy) | |
Creates an instance of the type 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... | |
async Task< T > | CreateAsync (params object[] criteria) |
Called by a factory method in a business class or by the UI 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 Fetch a new object, which is loaded with default values from the database. More... | |
async Task< T > | FetchAsync (params object[] criteria) |
Called by a factory method in a business class or by the UI to Fetch a new object, which is loaded with default values from the database. More... | |
T | Update (T obj) |
Called by a factory method in a business class or by the UI to update an object. More... | |
async Task< T > | UpdateAsync (T obj) |
Called by a factory method in a business class or by the UI to update an object. More... | |
void | Delete (params object[] criteria) |
Called by a factory method in a business class or by the UI to delete an object. More... | |
async Task | DeleteAsync (params object[] criteria) |
Called by a factory method in a business class or by the UI to delete an object. More... | |
T | Execute (T command) |
Called by a factory method in a business class or by the UI to execute a command object. More... | |
async Task< T > | ExecuteAsync (T command) |
Called by a factory method in a business class or by the UI to execute a command object. More... | |
T | CreateChild () |
Creates and initializes a new child business object. More... | |
T | CreateChild (params object[] parameters) |
Creates and initializes a new child business object. More... | |
async Task< T > | CreateChildAsync () |
Creates and initializes a new child business object. More... | |
async Task< T > | CreateChildAsync (params object[] parameters) |
Creates and initializes a new child business object. More... | |
T | FetchChild () |
Fetches an existing child business object. More... | |
T | FetchChild (params object[] parameters) |
Fetches an existing child business object. More... | |
async Task< T > | FetchChildAsync () |
Fetches an existing child business object. More... | |
async Task< T > | FetchChildAsync (params object[] parameters) |
Fetches an existing child business object. More... | |
void | UpdateChild (T child) |
Inserts, updates or deletes an existing child business object. More... | |
void | UpdateChild (object child, params object[] parameters) |
Inserts, updates or deletes an existing child business object. More... | |
void | UpdateChild (T child, params object[] parameters) |
Inserts, updates or deletes an existing child business object. More... | |
async Task | UpdateChildAsync (T child) |
Inserts, updates or deletes an existing child business object. More... | |
async Task | UpdateChildAsync (T child, params object[] parameters) |
Inserts, updates or deletes an existing child business object. More... | |
Client side data portal used for making asynchronous data portal calls in .NET.
T | Type of business object. |
Definition at line 23 of file DataPortalT.cs.
Csla.DataPortal< T >.DataPortal | ( | ApplicationContext | applicationContext, |
DataPortalClient.IDataPortalProxy | proxy | ||
) |
Creates an instance of the type
applicationContext | ApplicationContext |
proxy |
Definition at line 30 of file DataPortalT.cs.
T Csla.DataPortal< 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. |
Implements Csla.IDataPortal< T >.
Definition at line 151 of file DataPortalT.cs.
async Task< T > Csla.DataPortal< T >.CreateAsync | ( | params object[] | criteria | ) |
Called by a factory method in a business class or by the UI to create a new object, which is loaded with default values from the database.
criteria | Object-specific criteria. |
Implements Csla.IDataPortal< T >.
Definition at line 184 of file DataPortalT.cs.
T Csla.DataPortal< T >.CreateChild | ( | ) |
Creates and initializes a new child business object.
Definition at line 639 of file DataPortalT.cs.
T Csla.DataPortal< T >.CreateChild | ( | params object[] | parameters | ) |
Creates and initializes a new child business object.
parameters | Parameters passed to child create method. |
Implements Csla.IChildDataPortal< T >.
Definition at line 652 of file DataPortalT.cs.
async Task< T > Csla.DataPortal< T >.CreateChildAsync | ( | ) |
Creates and initializes a new child business object.
Definition at line 662 of file DataPortalT.cs.
async Task< T > Csla.DataPortal< T >.CreateChildAsync | ( | params object[] | parameters | ) |
Creates and initializes a new child business object.
parameters | Parameters passed to child create method. |
Implements Csla.IChildDataPortal< T >.
Definition at line 675 of file DataPortalT.cs.
void Csla.DataPortal< T >.Delete | ( | params object[] | criteria | ) |
Called by a factory method in a business class or by the UI to delete an object.
criteria | Object-specific criteria. |
Implements Csla.IDataPortal< T >.
Definition at line 545 of file DataPortalT.cs.
async Task Csla.DataPortal< 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. |
Implements Csla.IDataPortal< T >.
Definition at line 580 of file DataPortalT.cs.
T Csla.DataPortal< T >.Execute | ( | 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. |
Implements Csla.IDataPortal< T >.
Definition at line 590 of file DataPortalT.cs.
async Task< T > Csla.DataPortal< 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. |
Implements Csla.IDataPortal< T >.
Definition at line 600 of file DataPortalT.cs.
T Csla.DataPortal< T >.Fetch | ( | params object[] | criteria | ) |
Called by a factory method in a business class to Fetch a new object, which is loaded with default values from the database.
criteria | Object-specific criteria. |
Implements Csla.IDataPortal< T >.
Definition at line 247 of file DataPortalT.cs.
async Task< T > Csla.DataPortal< T >.FetchAsync | ( | params object[] | criteria | ) |
Called by a factory method in a business class or by the UI to Fetch a new object, which is loaded with default values from the database.
criteria | Object-specific criteria. |
Implements Csla.IDataPortal< T >.
Definition at line 279 of file DataPortalT.cs.
T Csla.DataPortal< T >.FetchChild | ( | ) |
Fetches an existing child business object.
Definition at line 685 of file DataPortalT.cs.
T Csla.DataPortal< T >.FetchChild | ( | params object[] | parameters | ) |
Fetches an existing child business object.
parameters | Parameters passed to child fetch method. |
Implements Csla.IChildDataPortal< T >.
Definition at line 698 of file DataPortalT.cs.
async Task< T > Csla.DataPortal< T >.FetchChildAsync | ( | ) |
Fetches an existing child business object.
Definition at line 708 of file DataPortalT.cs.
async Task< T > Csla.DataPortal< T >.FetchChildAsync | ( | params object[] | parameters | ) |
Fetches an existing child business object.
parameters | Parameters passed to child fetch method. |
Implements Csla.IChildDataPortal< T >.
Definition at line 721 of file DataPortalT.cs.
T Csla.DataPortal< T >.Update | ( | T | obj | ) |
Called by a factory method in a business class or by the UI to update an object.
obj | Object to update. |
Implements Csla.IDataPortal< T >.
Definition at line 467 of file DataPortalT.cs.
async Task< T > Csla.DataPortal< 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. |
Implements Csla.IDataPortal< T >.
Definition at line 487 of file DataPortalT.cs.
void Csla.DataPortal< T >.UpdateChild | ( | object | child, |
params object[] | parameters | ||
) |
Inserts, updates or deletes an existing child business object.
child | Business object to update. |
parameters | Parameters passed to child update method. |
Implements Csla.IChildDataPortal< T >.
Definition at line 750 of file DataPortalT.cs.
void Csla.DataPortal< T >.UpdateChild | ( | T | child | ) |
Inserts, updates or deletes an existing child business object.
child | Business object to update. |
Definition at line 734 of file DataPortalT.cs.
void Csla.DataPortal< T >.UpdateChild | ( | T | child, |
params object[] | parameters | ||
) |
Inserts, updates or deletes an existing child business object.
child | Business object to update. |
parameters | Parameters passed to child update method. |
Implements Csla.IChildDataPortal< T >.
Definition at line 766 of file DataPortalT.cs.
async Task Csla.DataPortal< T >.UpdateChildAsync | ( | T | child | ) |
Inserts, updates or deletes an existing child business object.
child | Business object to update. |
Definition at line 779 of file DataPortalT.cs.
async Task Csla.DataPortal< T >.UpdateChildAsync | ( | T | child, |
params object[] | parameters | ||
) |
Inserts, updates or deletes an existing child business object.
child | Business object to update. |
parameters | Parameters passed to child update method. |
Implements Csla.IChildDataPortal< T >.
Definition at line 795 of file DataPortalT.cs.