public EFUnitOfWork(DbContextOptions <PetSharingDbContext> options, UserManager <User> user, RoleManager <IdentityRole> role, SignInManager <User> signIn) { db = new PetSharingDbContext(options); UserManager = user; RoleManager = role; SignInManager = signIn; }
public CommentRepository(PetSharingDbContext context) { db = context; }
public PetProfileRepository(PetSharingDbContext context) { this.db = context; }
public UserService(PetSharingDbContext context, IMapper mapper) { _unitOfWork = new UnitOfWork(); _mapper = mapper; }
public PostRepository(PetSharingDbContext context) { db = context; }
public UserRepository(PetSharingDbContext context) { db = context; }
public MessageRepository(PetSharingDbContext context) { db = context; }