EntityRef<TEntity> Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy EntityRef<TEntity>.
Przeciążenia
EntityRef<TEntity>(IEnumerable<TEntity>) |
Inicjuje EntityRef<TEntity> nowe wystąpienie klasy, określając źródło. |
EntityRef<TEntity>(EntityRef<TEntity>) |
Inicjuje EntityRef<TEntity> nowe wystąpienie klasy, odwołując się do jednostki docelowej. |
EntityRef<TEntity>(TEntity) |
Inicjuje EntityRef<TEntity> nowe wystąpienie klasy, określając jednostkę docelową. |
EntityRef<TEntity>(IEnumerable<TEntity>)
Inicjuje EntityRef<TEntity> nowe wystąpienie klasy, określając źródło.
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))
Parametry
- source
- IEnumerable<TEntity>
Źródło odwołania.
Dotyczy
EntityRef<TEntity>(EntityRef<TEntity>)
Inicjuje EntityRef<TEntity> nowe wystąpienie klasy, odwołując się do jednostki docelowej.
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))
Parametry
- entityRef
- EntityRef<TEntity>
Jednostka docelowa.
Dotyczy
EntityRef<TEntity>(TEntity)
Inicjuje EntityRef<TEntity> nowe wystąpienie klasy, określając jednostkę docelową.
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)
Parametry
- entity
- TEntity
Jednostka docelowa.