示例#1
0
 // Repository constructor with an argument
 public BeerPostRepository(BeerContext _context)
 {
     context = _context;
 }
示例#2
0
 // Repository constructor
 public BeerPostRepository()
 {
     context = new BeerContext();
 }