Implements the server-side DataPortal as discussed in Chapter 4. More...
Public Member Functions | |
SimpleDataPortal (ApplicationContext applicationContext, IDataPortalActivator activator, IDataPortalExceptionInspector exceptionInspector) | |
Creates an instance of the type More... | |
async Task< DataPortalResult > | Create (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Create a new business object. More... | |
async Task< DataPortalResult > | Fetch (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Get an existing business object. More... | |
async Task< DataPortalResult > | Update (object obj, DataPortalContext context, bool isSync) |
Update a business object. More... | |
async Task< DataPortalResult > | Delete (Type objectType, object criteria, DataPortalContext context, bool isSync) |
Delete a business object. More... | |
Implements the server-side DataPortal as discussed in Chapter 4.
Definition at line 19 of file SimpleDataPortal.cs.
Csla.Server.SimpleDataPortal.SimpleDataPortal | ( | ApplicationContext | applicationContext, |
IDataPortalActivator | activator, | ||
IDataPortalExceptionInspector | exceptionInspector | ||
) |
Creates an instance of the type
applicationContext | ApplicationContext |
activator | |
exceptionInspector |
Definition at line 27 of file SimpleDataPortal.cs.
async Task< DataPortalResult > Csla.Server.SimpleDataPortal.Create | ( | Type | objectType, |
object | criteria, | ||
DataPortalContext | context, | ||
bool | isSync | ||
) |
Create a new business object.
objectType | Type of business object to create. |
criteria | Criteria object describing business object. |
context | Server.DataPortalContext object passed to the server. |
isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Definition at line 49 of file SimpleDataPortal.cs.
async Task< DataPortalResult > Csla.Server.SimpleDataPortal.Delete | ( | Type | objectType, |
object | criteria, | ||
DataPortalContext | context, | ||
bool | isSync | ||
) |
Delete a business object.
objectType | Type of business object to create. |
criteria | Criteria object describing business object. |
context | Server.DataPortalContext object passed to the server. |
isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Definition at line 246 of file SimpleDataPortal.cs.
async Task< DataPortalResult > Csla.Server.SimpleDataPortal.Fetch | ( | Type | objectType, |
object | criteria, | ||
DataPortalContext | context, | ||
bool | isSync | ||
) |
Get an existing business object.
objectType | Type of business object to retrieve. |
criteria | Criteria object describing business object. |
context | Server.DataPortalContext object passed to the server. |
isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Definition at line 103 of file SimpleDataPortal.cs.
async Task< DataPortalResult > Csla.Server.SimpleDataPortal.Update | ( | object | obj, |
DataPortalContext | context, | ||
bool | isSync | ||
) |
Update a business object.
obj | Business object to update. |
context | Server.DataPortalContext object passed to the server. |
isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Definition at line 155 of file SimpleDataPortal.cs.