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