EfCodeFirstBusinessBase<TEntity,TContext>.NewEntity

Adds a new entity as if it was created and fires the OnNewEntity internally. If NULL is passed in a brand new entity is created and passed back.

This allows for external creation of the entity and then adding the entity to the context after the fact.

public virtual TEntity NewEntity(TEntity entity)

Parameters

entity
An entity instance

Overloads:


See also:

Class EfCodeFirstBusinessBase

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic