コード例 #1
0
 public async Task <List <ServiceAddress> > AllAsync()
 {
     using (var context = _contextCreator())
     {
         _repository = new ConnectedRepository <ServiceAddress>(context);
         return(await _repository.AllAsync());
     }
 }
コード例 #2
0
 public async Task <List <Material> > AllAsync()
 {
     using (var context = _contextCreator())
     {
         _repository = new ConnectedRepository <Material>(context);
         return(await _repository.AllAsync());
     }
 }