public ClientDialogService( IOptions <AppSettings> auth, GardenLinkContext gardenLinkContext, UsersService usersService) { this.auth = auth; this.db = gardenLinkContext; this.usersService = usersService; }
public AdminManagementController(GardenLinkContext db, GardensService gardensService, LeasingsService leasingsService, PaymentsService paymentsService, ScoresService scoresService, UsersService usersService, WalletsService walletsService) { this.db = db; this.gardensService = gardensService; this.leasingsService = leasingsService; this.paymentsService = paymentsService; this.scoresService = scoresService; this.usersService = usersService; this.walletsService = walletsService; }
public ScoresService(GardenLinkContext gardenLinkContext) { db = gardenLinkContext; }
public WalletsService(GardenLinkContext gardenLinkContext, UsersService userService) { db = gardenLinkContext; this.userService = userService; }
//TODO: faire une vraie migration public static void Migrate(this GardenLinkContext context) { context.Database.EnsureDeleted(); //Tout cramer et repartir sur des bases saines context.Create(); }
public static void Create(this GardenLinkContext context) { context.Database.EnsureCreated(); }
public UsersService(GardenLinkContext gardenLinkContext) { db = gardenLinkContext; }
public TalksService(GardenLinkContext gardenLinkContext) { db = gardenLinkContext; }
public LeasingsService(GardenLinkContext gardenLinkContext) { db = gardenLinkContext; }
public PaymentsService(GardenLinkContext gardenLinkContext) { db = gardenLinkContext; }
public ContactsService(GardenLinkContext gardenLinkContext) { db = gardenLinkContext; }