public ProxyBindingRewriter( [NotNull] IProxyFactory proxyFactory, [CanBeNull] ProxiesOptionsExtension?options, [NotNull] LazyLoaderParameterBindingFactoryDependencies lazyLoaderParameterBindingFactoryDependencies, [NotNull] ProviderConventionSetBuilderDependencies conventionSetBuilderDependencies) { _proxyFactory = proxyFactory; _options = options; _lazyLoaderParameterBindingFactoryDependencies = lazyLoaderParameterBindingFactoryDependencies; _directBindingConvention = new ConstructorBindingConvention(conventionSetBuilderDependencies); }
/// <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> public ProxiesConventionSetPlugin( [NotNull] IProxyFactory proxyFactory, [NotNull] IDbContextOptions options, [NotNull] LazyLoaderParameterBindingFactoryDependencies lazyLoaderParameterBindingFactoryDependencies, [NotNull] ProviderConventionSetBuilderDependencies conventionSetBuilderDependencies) { _proxyFactory = proxyFactory; _options = options; _lazyLoaderParameterBindingFactoryDependencies = lazyLoaderParameterBindingFactoryDependencies; _conventionSetBuilderDependencies = conventionSetBuilderDependencies; }
/// <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> public ProxiesConventionSetPlugin( IProxyFactory proxyFactory, IDbContextOptions options, LazyLoaderParameterBindingFactoryDependencies lazyLoaderParameterBindingFactoryDependencies, ProviderConventionSetBuilderDependencies conventionSetBuilderDependencies) { _proxyFactory = proxyFactory; _options = options; LazyLoaderParameterBindingFactoryDependencies = lazyLoaderParameterBindingFactoryDependencies; ConventionSetBuilderDependencies = conventionSetBuilderDependencies; }
/// <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> public ProxyBindingRewriter( [NotNull] LazyLoaderParameterBindingFactoryDependencies lazyLoaderParameterBindingFactoryDependencies, [NotNull] IProxyFactory proxyFactory, [NotNull] IConstructorBindingFactory bindingFactory, [NotNull] IDiagnosticsLogger <DbLoggerCategory.Model> logger, [CanBeNull] ProxiesOptionsExtension options) { _directBindingConvention = new ConstructorBindingConvention(bindingFactory, logger); _lazyLoaderParameterBindingFactoryDependencies = lazyLoaderParameterBindingFactoryDependencies; _proxyFactory = proxyFactory; _options = options; }
/// <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> public ProxiesConventionSetCustomizer( [NotNull] IDbContextOptions options, [NotNull] IConstructorBindingFactory constructorBindingFactory, [NotNull] IProxyFactory proxyFactory, [NotNull] IDiagnosticsLogger <DbLoggerCategory.Model> logger, [NotNull] LazyLoaderParameterBindingFactoryDependencies lazyLoaderParameterBindingFactoryDependencies) { _options = options; _constructorBindingFactory = constructorBindingFactory; _proxyFactory = proxyFactory; _logger = logger; _lazyLoaderParameterBindingFactoryDependencies = lazyLoaderParameterBindingFactoryDependencies; }
/// <summary> /// Creates a new <see cref="LazyLoaderParameterBindingFactory" /> instance. /// </summary> /// <param name="dependencies">The service dependencies to use.</param> public LazyLoaderParameterBindingFactory(LazyLoaderParameterBindingFactoryDependencies dependencies) : base(typeof(ILazyLoader)) { Dependencies = dependencies; }