コード例 #1
0
 public EFBeerRepository(BarDbContext connection = null)
 {
     if (connection == null)
     {
         this.db = new BarDbContext();
     }
     else
     {
         this.db = connection;
     }
 }
コード例 #2
0
 public FooRepository()
 {
     _context = new BarDbContext();
     _context.Foos.Local.CollectionChanged += (o, e) => CollectionChanged(this, e);
 }