public MyController(KSContext _db) { db = _db; }
public RegisterUserCreateReceiver(KSContext context, IMapper mapper) { _context = context; _mapper = mapper; }
//相依性注入DB public ApiController(KSContext _db) { this.db = _db; }
public ExistingUserReceiver(KSContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public LoginUserReceiver(KSContext context, IMapper mapper) { _context = context; _mapper = mapper; }