public Puck_Repository(IConfiguration config) { repo = new PuckContext(config.GetConnectionString("DefaultConnection")); }
//public Puck_Repository(IConfiguration config) { // repo = new PuckContext(config.GetConnectionString("DefaultConnection")); //} //public Puck_Repository(DbContextOptions options) //{ // repo = new PuckContext(options); //} public Puck_Repository(PuckContext context) { repo = context; }