ChangeSet.Associate<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.]
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Sub Associate(Of TEntity As Class, TStoreEntity As Class) ( _
clientEntity As TEntity, _
storeEntity As TStoreEntity, _
storeToClientTransform As Action _
)
'Usage
Dim instance As ChangeSet
Dim clientEntity As TEntity
Dim storeEntity As TStoreEntity
Dim storeToClientTransform As Action
instance.Associate(clientEntity, storeEntity, _
storeToClientTransform)
public void Associate<TEntity, TStoreEntity>(
TEntity clientEntity,
TStoreEntity storeEntity,
Action storeToClientTransform
)
where TEntity : class
where TStoreEntity : class
public:
generic<typename TEntity, typename TStoreEntity>
where TEntity : ref class
where TStoreEntity : ref class
void Associate(
TEntity clientEntity,
TStoreEntity storeEntity,
Action^ storeToClientTransform
)
member Associate :
clientEntity:'TEntity *
storeEntity:'TStoreEntity *
storeToClientTransform:Action -> unit when 'TEntity : not struct when 'TStoreEntity : not struct
JScript does not support generic types and methods.
Type Parameters
- TEntity
- TStoreEntity
Parameters
- clientEntity
Type: TEntity
- storeEntity
Type: TStoreEntity
- storeToClientTransform
Type: System.Action<T1, T2>