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.Data.DataServiceContextManager< C > Class Template Reference

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

List< T > GetEntities< T > ()
 Gets a list of the entities of the specified type from the context. More...
 
GetEntity< T > (string keyPropertyName, object keyPropertyValue)
 Gets a list of the entities by key. More...
 

Static Public Member Functions

static DataServiceContextManager< C > GetManager (Uri path)
 Gets the DataServiceContext object for the specified URI. More...
 

Properties

DataServiceContext [get]
 Gets the DataServiceContext object. More...
 

Detailed Description

Provides an automated way to reuse an ADO.NET Data Services context object within the context of a single data portal operation.

Template Parameters
CType of context object to use.
Type Constraints
C :System.Data.Services.Client.DataServiceContext 

Definition at line 22 of file DataServiceContextManager.cs.

Member Function Documentation

◆ GetEntities< T >()

List< T > Csla.Data.DataServiceContextManager< C >.GetEntities< T > ( )

Gets a list of the entities of the specified type from the context.

Template Parameters
TType of entity.
Returns

Definition at line 84 of file DataServiceContextManager.cs.

◆ GetEntity< T >()

T Csla.Data.DataServiceContextManager< C >.GetEntity< T > ( string  keyPropertyName,
object  keyPropertyValue 
)

Gets a list of the entities by key.

Template Parameters
TType of entity.
Parameters
keyPropertyNameName of the key property.
keyPropertyValueKey value to match.

Definition at line 109 of file DataServiceContextManager.cs.

◆ GetManager()

static DataServiceContextManager< C > Csla.Data.DataServiceContextManager< C >.GetManager ( Uri  path)
static

Gets the DataServiceContext object for the specified URI.

Parameters
pathURI to the server-side services.

Definition at line 35 of file DataServiceContextManager.cs.

Property Documentation

◆ DataServiceContext

C Csla.Data.DataServiceContextManager< C >.DataServiceContext
get

Gets the DataServiceContext object.

Definition at line 63 of file DataServiceContextManager.cs.