Bewerken

Delen via


EntityRef<TEntity> Constructors

Definition

Initializes a new instance of the EntityRef<TEntity> class.

Overloads

EntityRef<TEntity>(IEnumerable<TEntity>)

Initializes a new instance of the EntityRef<TEntity> class by specifying the source.

EntityRef<TEntity>(EntityRef<TEntity>)

Initializes a new instance of the EntityRef<TEntity> class by referencing the target entity.

EntityRef<TEntity>(TEntity)

Initializes a new instance of the EntityRef<TEntity> class by specifying the target entity.

EntityRef<TEntity>(IEnumerable<TEntity>)

Initializes a new instance of the EntityRef<TEntity> class by specifying the source.

public:
 EntityRef(System::Collections::Generic::IEnumerable<TEntity> ^ source);
public EntityRef (System.Collections.Generic.IEnumerable<TEntity> source);
new System.Data.Linq.EntityRef<'Entity (requires 'Entity : null)> : seq<'Entity (requires 'Entity : null)> -> System.Data.Linq.EntityRef<'Entity (requires 'Entity : null)>
Public Sub New (source As IEnumerable(Of TEntity))

Parameters

source
IEnumerable<TEntity>

The reference source.

Applies to

EntityRef<TEntity>(EntityRef<TEntity>)

Initializes a new instance of the EntityRef<TEntity> class by referencing the target entity.

public:
 EntityRef(System::Data::Linq::EntityRef<TEntity> entityRef);
public EntityRef (System.Data.Linq.EntityRef<TEntity> entityRef);
new System.Data.Linq.EntityRef<'Entity (requires 'Entity : null)> : System.Data.Linq.EntityRef<'Entity (requires 'Entity : null)> -> System.Data.Linq.EntityRef<'Entity (requires 'Entity : null)>
Public Sub New (entityRef As EntityRef(Of TEntity))

Parameters

entityRef
EntityRef<TEntity>

The target entity.

Applies to

EntityRef<TEntity>(TEntity)

Initializes a new instance of the EntityRef<TEntity> class by specifying the target entity.

public:
 EntityRef(TEntity entity);
public EntityRef (TEntity entity);
new System.Data.Linq.EntityRef<'Entity (requires 'Entity : null)> : 'Entity -> System.Data.Linq.EntityRef<'Entity (requires 'Entity : null)>
Public Sub New (entity As TEntity)

Parameters

entity
TEntity

The target entity.

Applies to