EntityManagerCreateEntityT Method (Object, EntityState) Breeze.sharp
Creates a new entity and sets its EntityState. Unless this state is Detached, the entity is also added to the EntityManager.

Namespace: Breeze.Sharp
Assembly: Breeze.Sharp (in Breeze.Sharp.dll) Version: 0.6.0.5 (0.6.0.5)
Syntax

public T CreateEntity<T>(
	Object initialValues = null,
	EntityState entityState = EntityState.Added
)

Parameters

initialValues (Optional)
Type: SystemObject
entityState (Optional)
Type: Breeze.SharpEntityState
Default is 'Added'

Type Parameters

T

Return Value

Type: T
See Also

Reference