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