using DistributionApi.IRepositories;
using MadRunFabric.Common;
using MadRunFabric.Common.Options;
using MadRunFabric.Model;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Text;

namespace DistributionApi.Repositories
{
    public class Distri_Workorder_ExceptionRepository : BaseRepository<Distri_Workorder_Exception, string>, IDistri_Workorder_ExceptionRepository
    {
        protected readonly ILogger<BaseRepository<Distri_Workorder_Exception, string>> _logger;
        protected readonly IMongoCollection<Distri_Workorder_Exception> _collection_distri_workorder_exception;
        public Distri_Workorder_ExceptionRepository(IOptions<MongodbOptions> settings,
            ILogger<BaseRepository<Distri_Workorder_Exception, string>> logger) : base(settings, logger)
        {
            _collection_distri_workorder_exception = _context.GetCollection<Distri_Workorder_Exception>();  //获取集合
            _logger = logger;
        }
    }
}
