Exemplo n.º 1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="MigrationsScaffolder" /> class.
        /// </summary>
        /// <param name="dependencies"> The dependencies. </param>
        public MigrationsScaffolder([NotNull] MigrationsScaffolderDependencies dependencies)
        {
            Check.NotNull(dependencies, nameof(dependencies));

            _contextType    = dependencies.CurrentContext.Context.GetType();
            _activeProvider = dependencies.DatabaseProvider.Name;
            Dependencies    = dependencies;
        }
Exemplo n.º 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MigrationsScaffolder" /> class.
 /// </summary>
 /// <param name="dependencies">The dependencies.</param>
 public MigrationsScaffolder(MigrationsScaffolderDependencies dependencies)
 {
     _contextType    = dependencies.CurrentContext.Context.GetType();
     _activeProvider = dependencies.DatabaseProvider.Name;
     Dependencies    = dependencies;
 }