MongoRepository(T, TKey).Update Method (T)

MongoRepository

MongoRepositoryT, TKeyUpdate Method (T)
Upserts an entity.

Namespace: MongoRepository
Assembly: MongoRepository.Net45 (in MongoRepository.Net45.dll) Version: 1.6.11.0 (1.6.11.0)
Syntax
public virtual T Update(
	T entity
)
Public Overridable Function Update ( 
	entity As T
) As T
public:
virtual T Update(
	T entity
)
abstract Update : 
        entity : 'T -> 'T 
override Update : 
        entity : 'T -> 'T 

Parameters

entity
Type: T
The entity.

Return Value

Type: T
The updated entity.

Implements

IRepositoryT, TKeyUpdate(T)
See Also