コード例 #1
0
 public GenericDataService(SimpleTraderDbContextFactory contextFactory)
 {
     _contextFactory      = contextFactory;
     _nonQueryDataService = new NonQueryDataService <T>(contextFactory);
 }
コード例 #2
0
 public AccountDataService(SimpleTraderDbContextFactory simpleTraderDbContextFactory)
 {
     _contextFactory      = simpleTraderDbContextFactory;
     _nonQueryDataService = new NonQueryDataService <Account>(simpleTraderDbContextFactory);
 }
コード例 #3
0
 public AccountDataService(SimpleTraderDbContextFactory context)
 {
     _context             = context;
     _nonQueryDataService = new NonQueryDataService <Account>(context);
 }