public Function() { var serviceCollection = new ServiceCollection(); ConfigureServices(serviceCollection); var serviceProvider = serviceCollection.BuildServiceProvider(); DataContext = serviceProvider.GetService <ISqlDataContext>(); _exceptionLogFormatter = serviceProvider.GetService <IExceptionLogFormatter>(); }
public OrderRepositoryUmbrella(ISqlDataContext context) { _context = context; }
public UserService(ISqlDataContext _dataContext) : base() { dataContext = _dataContext; }
/// <summary> /// /// </summary> /// <param name="_dataContext"></param> public ProductService(ISqlDataContext _dataContext) { dataContext = _dataContext; }
public HistoryRepository(ISqlDataContext sqlDataContext) { _sqlDataContext = sqlDataContext; }
public CustomerRepositoryUmbrella(ISqlDataContext context) { _context = context; }
public CurrencyConverterRepository(ISqlDataContext sqlDataContext, IJayaHttpClient jayaHttpClient) { _jayaHttpClient = jayaHttpClient; _sqlDataContext = sqlDataContext; }