MongoRepository documentation
MongoRepositoryT, 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
public virtual T Add( T entity )
Public Overridable Function Add ( entity As T ) As T
public: virtual T Add( T entity )
abstract Add : entity : 'T -> 'T override Add : entity : 'T -> 'T
Parameters
- entity
- Type: T
The entity T.
Return Value
Type: TThe added entity including its new ObjectId.
Implements
IRepositoryT, TKeyAdd(T)See Also