Example #1
0
 public Puck_Repository(IConfiguration config)
 {
     repo = new PuckContext(config.GetConnectionString("DefaultConnection"));
 }
Example #2
0
 //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;
 }