IRepository(T, TKey).Add Method (T)

MongoRepository

IRepositoryT, TKeyAdd Method (T)
Adds the new entity in the repository.

Namespace: MongoRepository
Assembly: MongoRepository.Net45 (in MongoRepository.Net45.dll) Version: 1.6.11.0 (1.6.11.0)
Syntax
T Add(
	T entity
)
Function Add ( 
	entity As T
) As T
T Add(
	T entity
)
abstract Add : 
        entity : 'T -> 'T 

Parameters

entity
Type: T
The entity to add.

Return Value

Type: T
The added entity including its new ObjectId.
See Also