ChangeSet.GetAssociatedEntities<TEntity, TStoreEntity> Method
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Gets the collection of presentation model entities associated with the specified data store client entity.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Function GetAssociatedEntities(Of TEntity As Class, TStoreEntity) ( _
storeEntity As TStoreEntity _
) As IEnumerable(Of TEntity)
'Usage
Dim instance As ChangeSet
Dim storeEntity As TStoreEntity
Dim returnValue As IEnumerable(Of TEntity)
returnValue = instance.GetAssociatedEntities(storeEntity)
public IEnumerable<TEntity> GetAssociatedEntities<TEntity, TStoreEntity>(
TStoreEntity storeEntity
)
where TEntity : class
public:
generic<typename TEntity, typename TStoreEntity>
where TEntity : ref class
IEnumerable<TEntity>^ GetAssociatedEntities(
TStoreEntity storeEntity
)
member GetAssociatedEntities :
storeEntity:'TStoreEntity -> IEnumerable<'TEntity> when 'TEntity : not struct
JScript does not support generic types and methods.
Type Parameters
- TEntity
The client entity type.
- TStoreEntity
The data store entity type.
Parameters
- storeEntity
Type: TStoreEntity
The data store entity.
Return Value
Type: System.Collections.Generic.IEnumerable<TEntity>
A collection of presentation model entities.
Exceptions
Exception | Condition |
---|---|
[ArgumentNullException] | storeEntity is nulla null reference (Nothing in Visual Basic). |