Search Results for

    Show / Hide Table of Contents

    Interface IMongoContext

    MongoDB context

    Inherited Members
    IDatabaseContext.AddCommand(Func<Task>)
    IDatabaseContext.SaveChangesAsync()
    System.IDisposable.Dispose()
    Namespace: Simplic.Data.MongoDB
    Assembly: Simplic.Data.MongoDB.dll
    Syntax
    public interface IMongoContext : IDatabaseContext, IDisposable

    Methods

    | Improve this Doc View Source

    GetCollection<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

    | Improve this Doc View Source

    SetConfiguration(String)

    Set database configuration by name

    Declaration
    void SetConfiguration(string configurationName)
    Parameters
    Type Name Description
    System.String configurationName
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx