Create Method
Collapse the table of content
Expand the table of content

DbSet(TEntity).Create Method

Creates a new instance of an entity for the type of this set. 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 final function Create() : TEntity

Return Value

Type: TEntity
Returns [{0}].


© 2016 Microsoft