Provides an automated way to reuse an ADO.NET Data Services context object within the context of a single data portal operation. More...
Public Member Functions | |
DataServiceContextManager< C > | GetManager (Uri path) |
Gets the DataServiceContext object for the specified URI. More... | |
List< T > | GetEntities< T > () |
Gets a list of the entities of the specified type from the context. More... | |
T | GetEntity< T > (string keyPropertyName, object keyPropertyValue) |
Gets a list of the entities by key. More... | |
Properties | |
C | DataServiceContext [get] |
Gets the DataServiceContext object. More... | |
Properties inherited from Csla.Core.IUseApplicationContext | |
ApplicationContext | ApplicationContext [getset] |
Gets or sets the current ApplicationContext object. More... | |
Provides an automated way to reuse an ADO.NET Data Services context object within the context of a single data portal operation.
C | Type of context object to use. |
C | : | System.Data.Services.Client.DataServiceContext |
Definition at line 23 of file DataServiceContextManager.cs.
List< T > Csla.Data.DataServiceContextManager< C >.GetEntities< T > | ( | ) |
Gets a list of the entities of the specified type from the context.
T | Type of entity. |
Definition at line 89 of file DataServiceContextManager.cs.
T Csla.Data.DataServiceContextManager< C >.GetEntity< T > | ( | string | keyPropertyName, |
object | keyPropertyValue | ||
) |
Gets a list of the entities by key.
T | Type of entity. |
keyPropertyName | Name of the key property. |
keyPropertyValue | Key value to match. |
Definition at line 114 of file DataServiceContextManager.cs.
DataServiceContextManager< C > Csla.Data.DataServiceContextManager< C >.GetManager | ( | Uri | path | ) |
Gets the DataServiceContext object for the specified URI.
path | URI to the server-side services. |
Definition at line 40 of file DataServiceContextManager.cs.
|
get |
Gets the DataServiceContext object.
Definition at line 68 of file DataServiceContextManager.cs.