예제 #1
0
 /// <summary>
 /// Constructs the context with default options
 /// </summary>
 /// <param name="optionsGenerator">The options generator</param>
 public ReportrDbContext
 (
     IDbContextOptionsGenerator optionsGenerator
 )
     : this(optionsGenerator.Generate())
 {
 }
예제 #2
0
        /// <summary>
        /// Constructs the service with required dependencies
        /// </summary>
        /// <param name="optionsGenerator">The context options generator</param>
        public DefaultReportrDbMigrator
        (
            IDbContextOptionsGenerator optionsGenerator
        )
        {
            Validate.IsNotNull(optionsGenerator);

            _optionsGenerator = optionsGenerator;
        }