CSLA.NET 6.0.0
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...

Inheritance diagram for Csla.Data.DataServiceContextManager< C >:
Csla.Core.IUseApplicationContext

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...
 
GetEntity< T > (string keyPropertyName, object keyPropertyValue)
 Gets a list of the entities by key. More...
 

Properties

DataServiceContext [get]
 Gets the DataServiceContext object. More...
 
- Properties inherited from Csla.Core.IUseApplicationContext
ApplicationContext ApplicationContext [getset]
 Gets or sets the current ApplicationContext 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 23 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 89 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 114 of file DataServiceContextManager.cs.

◆ GetManager()

Gets the DataServiceContext object for the specified URI.

Parameters
pathURI to the server-side services.

Definition at line 40 of file DataServiceContextManager.cs.

Property Documentation

◆ DataServiceContext

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

Gets the DataServiceContext object.

Definition at line 68 of file DataServiceContextManager.cs.