ObjectSet<TEntity>.CreateObject Metoda

Definicja

Przeciążenia

CreateObject()

Tworzy nowy obiekt typu jednostki.

CreateObject<T>()

Tworzy wystąpienie określonego typu.

CreateObject()

Tworzy nowy obiekt typu jednostki.

public:
 TEntity CreateObject();
public TEntity CreateObject ();
member this.CreateObject : unit -> 'Entity
Public Function CreateObject () As TEntity

Zwraca

TEntity

Nowy obiekt typu jednostki lub wystąpienie typu serwera proxy odpowiadające typowi jednostki.

Dotyczy

CreateObject<T>()

Tworzy wystąpienie określonego typu.

public:
generic <typename T>
 where T : class, TEntity T CreateObject();
public T CreateObject<T> () where T : class, TEntity;
member this.CreateObject : unit -> 'T
Public Function CreateObject(Of T As {Class, TEntity}) () As T

Parametry typu

T

Typ obiektu, który ma zostać zwrócony.

Zwraca

T

Wystąpienie żądanego typu Tlub wystąpienie typu serwera proxy odpowiadające typowi T.

Dotyczy