Ejemplo n.º 1
0
 public PositionRepository(EfDataStore contextProvider, ILogger logger) :
     base(contextProvider, logger)
 {
     _contextProvider = contextProvider;
 }
Ejemplo n.º 2
0
 /// <summary>Initializes a new instance of the <see cref="RepositoryBase" /> class.</summary>
 /// <param name="contextProvider">The context provider.</param>
 /// <param name="logger">The logger.</param>
 /// <exception cref="ArgumentNullException">contextProvider</exception>
 protected RepositoryBase(EfDataStore contextProvider, ILogger logger)
 {
     _contextProvider = contextProvider ?? throw new ArgumentNullException(nameof(contextProvider));
     Logger           = logger ?? throw new ArgumentNullException(nameof(logger));
 }