示例#1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
示例#2
0
 public StateRepository(ApolloContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public CustomApplicationRepository(ApolloContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
示例#4
0
 public ApolloProfileService(UserManager <ApolloUser> userManager, ApolloContext context)
 {
     _context     = context;
     _userManager = userManager;
 }
示例#5
0
 public UserRepository(ApolloContext context, UserManager <ApolloUser> userManager)
 {
     _context     = context ?? throw new ArgumentNullException(nameof(context));
     _userManager = userManager ?? throw new ArgumentNullException(nameof(userManager));;
 }
 public UserAppRoleMappingRepository(ApolloContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public CustomSocietyUserRepository(ApolloContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }