Skip to content

teqbench/tradingtoolbox.trading.modeler.data.nosql.mongodb.models

Repository files navigation

Trading Modeler MongoDB Models

Build Status Badge Build Number Badge Coverage

Overview

Trade Position Modeler domain models for MongoDB.

Contents

Developer Environment Setup

General

.NET

Usage

Add NuGet Package To Project

dotnet add package TradingToolbox.Trading.Modeler.Data.NoSql.MongoDB.Models

Update Source Code

/// <summary>
/// Position model respository interface for position model documents.
/// </summary>
/// <seealso cref="IRepository{Models}" />
public interface IPositionModelRepository : IRepository<PositionModelDocument>
{
    // NOTE: using the generic IRepository interface from TeqBench.System.Data.NoSql.MongoDB.Repsitory
    // allows the implementing interface/class to specify a different data type for the underlying document
    // this repository to work with.
}

/// <summary>
/// Position model respository for position model documents.
/// </summary>
/// <seealso cref="TeqBench.System.Data.NoSql.MongoDB.Repsitory{PositionModelDocument}" />
/// <seealso cref="IPositionModelRepository" />
public class PositionModelRepository : Repository<PositionModelDocument>, IPositionModelRepository
{
    // NOTE: Concrete implementation of document respository for a PositionModelDocument.
}

Licensing

License