public EFBeerRepository(BarDbContext connection = null) { if (connection == null) { this.db = new BarDbContext(); } else { this.db = connection; } }
public FooRepository() { _context = new BarDbContext(); _context.Foos.Local.CollectionChanged += (o, e) => CollectionChanged(this, e); }