コード例 #1
0
        public AccountRepository(JolijoberDbContext context,
                                 UserManager <AccountUser> userManager, SignInManager <AccountUser> signInManager, RoleManager <AccountRole> roleManager,
                                 JolijoberService contextmongodb) : base(context)
        {
            UserManager   = userManager;
            SignInManager = signInManager;
            RoleManager   = roleManager;


            this.contextmongodb = contextmongodb.MongoService.GetCollection <Identity>(PluralizationProvider.Pluralize(nameof(Identity)));
        }
コード例 #2
0
 protected JolijoberRepository(JolijoberService context)
 {
     Context = context.MongoService.GetCollection <T>(PluralizationProvider.Pluralize(typeof(T).Name));
 }
コード例 #3
0
 public PostRepository(JolijoberService service, IHttpContextAccessor httpContextAccessor) : base(service)
 {
     this.httpContextAccessor = httpContextAccessor;
 }
コード例 #4
0
 public IdentityRepository(JolijoberService service) : base(service)
 {
 }