Share via

DbSet.Create Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see]

Creates a new instance of an entity for the type of this set. Note that this instance is NOT added or attached to the set. The instance returned will be a proxy if the underlying context is configured to create proxies and the entity type meets the requirements for creating a proxy.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)


Public Overridable Function Create As Object
Dim instance As DbSet 
Dim returnValue As Object 

returnValue = instance.Create()
public virtual Object Create()
virtual Object^ Create()
abstract Create : unit -> Object  
override Create : unit -> Object
public function Create() : Object

Return Value

Type: System.Object
The entity instance, which may be a proxy.

See Also


DbSet Class

Create Overload

System.Data.Entity Namespace