/// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> protected DbContextOperations( IOperationReporter reporter, Assembly assembly, Assembly startupAssembly, string projectDir, string?rootNamespace, string?language, bool nullable, string[]?args, AppServiceProviderFactory appServicesFactory) { Check.NotNull(reporter, nameof(reporter)); Check.NotNull(assembly, nameof(assembly)); Check.NotNull(startupAssembly, nameof(startupAssembly)); Check.NotNull(projectDir, nameof(projectDir)); _reporter = reporter; _assembly = assembly; _startupAssembly = startupAssembly; _projectDir = projectDir; _rootNamespace = rootNamespace; _language = language; _nullable = nullable; _args = args ?? Array.Empty <string>(); _appServicesFactory = appServicesFactory; _servicesBuilder = new DesignTimeServicesBuilder(assembly, startupAssembly, reporter, _args); }
protected DbContextOperations( [NotNull] IOperationReporter reporter, [NotNull] Assembly assembly, [NotNull] Assembly startupAssembly, [NotNull] AppServiceProviderFactory appServicesFactory) { Check.NotNull(reporter, nameof(reporter)); Check.NotNull(assembly, nameof(assembly)); Check.NotNull(startupAssembly, nameof(startupAssembly)); _reporter = reporter; _assembly = assembly; _startupAssembly = startupAssembly; _appServicesFactory = appServicesFactory; }
/// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> protected DbContextOperations( IOperationReporter reporter, Assembly assembly, Assembly startupAssembly, string[]?args, AppServiceProviderFactory appServicesFactory) { Check.NotNull(reporter, nameof(reporter)); Check.NotNull(assembly, nameof(assembly)); Check.NotNull(startupAssembly, nameof(startupAssembly)); _reporter = reporter; _assembly = assembly; _startupAssembly = startupAssembly; _args = args ?? Array.Empty <string>(); _appServicesFactory = appServicesFactory; }
/// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> protected DbContextOperations( [NotNull] IOperationReporter reporter, [NotNull] Assembly assembly, [NotNull] Assembly startupAssembly, [NotNull] string[] args, [NotNull] AppServiceProviderFactory appServicesFactory) { Check.NotNull(reporter, nameof(reporter)); Check.NotNull(assembly, nameof(assembly)); Check.NotNull(startupAssembly, nameof(startupAssembly)); // Note: cannot assert that args is not null - as old versions of // tools can still pass null. _reporter = reporter; _assembly = assembly; _startupAssembly = startupAssembly; _args = args ?? Array.Empty <string>(); _appServicesFactory = appServicesFactory; }