Interface IMongoContext
MongoDB context
Inherited Members
System.IDisposable.Dispose()
Namespace: Simplic.Data.MongoDB
Assembly: Simplic.Data.MongoDB.dll
Syntax
public interface IMongoContext : IDatabaseContext, IDisposable
Methods
| Improve this Doc View SourceGetCollection<T>(String)
Gets a mongodb collection
Declaration
IMongoCollection<T> GetCollection<T>(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Collection name |
Returns
Type | Description |
---|---|
IMongoCollection<T> | Collection if exists |
Type Parameters
Name | Description |
---|---|
T | Collection type |
SetConfiguration(String)
Set database configuration by name
Declaration
void SetConfiguration(string configurationName)
Parameters
Type | Name | Description |
---|---|---|
System.String | configurationName |