EntityManagerCreateEntity Method (EntityType, 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 IEntity CreateEntity(
	EntityType entityType,
	Object initialValues = null,
	EntityState entityState = EntityState.Added
)

Parameters

entityType
Type: Breeze.SharpEntityType
initialValues (Optional)
Type: SystemObject
entityState (Optional)
Type: Breeze.SharpEntityState

Return Value

Type: IEntity
See Also

Reference