ObjectSet<TEntity>.CreateObject ObjectSet<TEntity>.CreateObject ObjectSet<TEntity>.CreateObject ObjectSet<TEntity>.CreateObject Method

Definition

Overloads

CreateObject() CreateObject() CreateObject() CreateObject()

Creates a new entity type object.

CreateObject<T>() CreateObject<T>() CreateObject<T>() CreateObject<T>()

Creates an instance of the specified type.

CreateObject() CreateObject() CreateObject() CreateObject()

Creates a new entity type object.

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

Returns

TEntity TEntity TEntity TEntity

The new entity type object, or an instance of a proxy type that corresponds to the entity type.

CreateObject<T>() CreateObject<T>() CreateObject<T>() CreateObject<T>()

Creates an instance of the specified type.

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

Type Parameters

T

Type of object to be returned.

Returns

T T T T

An instance of the requested type T, or an instance of a proxy type that corresponds to the type T.

Applies to