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_UpdateRecordRepository : BaseRepository<Distri_Workorder_UpdateRecord, string>, IDistri_Workorder_UpdateRecordRepository
    {
        protected readonly ILogger<BaseRepository<Distri_Workorder_UpdateRecord, string>> _logger;
        protected readonly IMongoCollection<Distri_Workorder_UpdateRecord> _collection_distri_workorder_updateRrecord;
        public Distri_Workorder_UpdateRecordRepository(IOptions<MongodbOptions> settings, ILogger<BaseRepository<Distri_Workorder_UpdateRecord, string>> logger) : base(settings, logger)
        {
            _collection_distri_workorder_updateRrecord = _context.GetCollection<Distri_Workorder_UpdateRecord>();  //获取集合
            _logger = logger;
        }
    }
}
