Click or drag to resize
DbInsertE Method
Inserts entity to the database.

Namespace: LiteRepository
Assembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntax
C#
public virtual E Insert<E>(
	E entity
)
where E : class

Parameters

entity
Type: E
Entity to insert into the database.

Type Parameters

E
Type of the entity.

Return Value

Type: E
If entity is identity - returns a new entity with a new Id. Otherwise it returns original entity.
See Also