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