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_OffenceRecordRepository : BaseRepository<Distri_Workorder_OffenceRecord, string>, IDistri_Workorder_OffenceRecordRepository
    {
        protected readonly ILogger<BaseRepository<Distri_Workorder_OffenceRecord, string>> _logger;
        protected readonly IMongoCollection<Distri_Workorder_OffenceRecord> _collection_distri_workorder_iffenceRecord;
        public Distri_Workorder_OffenceRecordRepository(IOptions<MongodbOptions> settings,
            ILogger<BaseRepository<Distri_Workorder_OffenceRecord, string>> logger) : base(settings, logger)
        {
            _collection_distri_workorder_iffenceRecord = _context.GetCollection<Distri_Workorder_OffenceRecord>();  //获取集合
            _logger = logger;
        }
    }
}
