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

namespace MessageApi.Repositories
{
    public class Distri_Workorder_PlanTaskRepository : BaseRepository<Distri_Workorder_PlanTask, string>, IDistri_Workorder_PlanTaskRepository
    {
        protected readonly ILogger<BaseRepository<Distri_Workorder_PlanTask, string>> _logger;
        protected readonly IMongoCollection<Sys_DictionaryValue> _collection_sys_dictionaryvalue;
        protected readonly IMongoCollection<Pro_Project_Info> _collection_pro_project_info;
        public Distri_Workorder_PlanTaskRepository(IOptions<MongodbOptions> settings, ILogger<BaseRepository<Distri_Workorder_PlanTask, string>> logger) : base(settings, logger)
        {
            _collection_sys_dictionaryvalue = _context.GetCollection<Sys_DictionaryValue>();  //获取集合
            _collection_pro_project_info = _context.GetCollection<Pro_Project_Info>();  //获取集合
            _logger = logger;
        }
    }
}
