EntityRef<TEntity> Constructor
[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.]
Initializes an instance of the EntityRef<TEntity> class.
Namespace: System.ServiceModel.DomainServices.Client
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
Syntax
'Declaration
Public Sub New ( _
parent As Entity, _
memberName As String, _
entityPredicate As Func(Of TEntity, Boolean) _
)
'Usage
Dim parent As Entity
Dim memberName As String
Dim entityPredicate As Func(Of TEntity, Boolean)
Dim instance As New EntityRef(parent, _
memberName, entityPredicate)
public EntityRef(
Entity parent,
string memberName,
Func<TEntity, bool> entityPredicate
)
public:
EntityRef(
Entity^ parent,
String^ memberName,
Func<TEntity, bool>^ entityPredicate
)
new :
parent:Entity *
memberName:string *
entityPredicate:Func<'TEntity, bool> -> EntityRef
public function EntityRef(
parent : Entity,
memberName : String,
entityPredicate : Func<TEntity, boolean>
)
Parameters
- parent
Type: System.ServiceModel.DomainServices.Client.Entity
The entity that this association is a member of.
- memberName
Type: System.String
The name of this EntityRef<TEntity> member on the parent entity.
- entityPredicate
Type: System.Func<TEntity, Boolean>
The function used to filter the associated entity.