/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public ForeignKeyAttributeConvention( [NotNull] ITypeMappingSource typeMappingSource, [NotNull] IParameterBindingFactories parameterBindingFactories, [NotNull] IDiagnosticsLogger <DbLoggerCategory.Model> logger) { Check.NotNull(typeMappingSource, nameof(typeMappingSource)); Check.NotNull(parameterBindingFactories, nameof(parameterBindingFactories)); _typeMappingSource = typeMappingSource; _parameterBindingFactories = parameterBindingFactories; _logger = logger; }
/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public ServicePropertyDiscoveryConvention( [NotNull] ITypeMappingSource typeMappingSource, [NotNull] IParameterBindingFactories parameterBindingFactories, [NotNull] IDiagnosticsLogger <DbLoggerCategory.Model> logger) { Check.NotNull(typeMappingSource, nameof(typeMappingSource)); Check.NotNull(parameterBindingFactories, nameof(parameterBindingFactories)); _typeMappingSource = typeMappingSource; _parameterBindingFactories = parameterBindingFactories; Logger = logger; }
/// <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 PropertyMappingValidationConvention( [NotNull] ITypeMappingSource typeMappingSource, [NotNull] IMemberClassifier memberClassifier, [NotNull] IDiagnosticsLogger <DbLoggerCategory.Model> logger) { Check.NotNull(typeMappingSource, nameof(typeMappingSource)); Check.NotNull(memberClassifier, nameof(memberClassifier)); _typeMappingSource = typeMappingSource; _memberClassifier = memberClassifier; Logger = logger; }
/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public JetQuerySqlGenerator( [NotNull] QuerySqlGeneratorDependencies dependencies, ISqlExpressionFactory sqlExpressionFactory, ITypeMappingSource typeMappingSource, IJetOptions options) : base(dependencies) { _sqlExpressionFactory = (JetSqlExpressionFactory)sqlExpressionFactory; _typeMappingSource = typeMappingSource; _options = options; _sqlGenerationHelper = dependencies.SqlGenerationHelper; _boolTypeMapping = _typeMappingSource.FindMapping(typeof(bool)); }
public ShapedQueryCompilingExpressionVisitorDependencies( [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] ITypeMappingSource typeMappingSource, [NotNull] IMemoryCache memoryCache) { Check.NotNull(entityMaterializerSource, nameof(entityMaterializerSource)); Check.NotNull(typeMappingSource, nameof(typeMappingSource)); Check.NotNull(memoryCache, nameof(memoryCache)); EntityMaterializerSource = entityMaterializerSource; TypeMappingSource = typeMappingSource; MemoryCache = memoryCache; }
/// <summary> /// <para> /// Creates the service dependencies parameter object for a <see cref="ProviderConventionSetBuilder" />. /// </para> /// <para> /// Do not call this constructor directly from either provider or application code as it may change /// as new dependencies are added. Instead, use this type in your constructor so that an instance /// will be created and injected automatically by the dependency injection container. To create /// an instance with some dependent services replaced, first resolve the object from the dependency /// injection container, then replace selected services using the 'With...' methods. Do not call /// the constructor at any point in this process. /// </para> /// <para> /// 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. /// </para> /// </summary> /// <param name="typeMappingSource"> The type mapping source. </param> /// <param name="constructorBindingFactory"> The constructor binding factory. </param> /// <param name="parameterBindingFactories"> The parameter binding factories. </param> /// <param name="memberClassifier"> The member classifier. </param> /// <param name="logger"> The model logger. </param> /// <param name="setFinder"> The set finder. </param> /// <param name="context"> The current context instance. </param> public ProviderConventionSetBuilderDependencies( [NotNull] ITypeMappingSource typeMappingSource, [CanBeNull] IConstructorBindingFactory constructorBindingFactory, [CanBeNull] IParameterBindingFactories parameterBindingFactories, [CanBeNull] IMemberClassifier memberClassifier, [CanBeNull] IDiagnosticsLogger <DbLoggerCategory.Model> logger, [CanBeNull] IDbSetFinder setFinder, [CanBeNull] ICurrentDbContext context) { Check.NotNull(typeMappingSource, nameof(typeMappingSource)); TypeMappingSource = typeMappingSource; if (parameterBindingFactories == null) { parameterBindingFactories = new ParameterBindingFactories( null, new RegisteredServices(Enumerable.Empty <Type>())); } ParameterBindingFactories = parameterBindingFactories; if (memberClassifier == null) { memberClassifier = new MemberClassifier( typeMappingSource, parameterBindingFactories); } MemberClassifier = memberClassifier; if (constructorBindingFactory == null) { ConstructorBindingFactory = new ConstructorBindingFactory( new PropertyParameterBindingFactory(), parameterBindingFactories); } ConstructorBindingFactory = constructorBindingFactory; Logger = logger ?? new DiagnosticsLogger <DbLoggerCategory.Model>( new ScopedLoggerFactory(new LoggerFactory(), dispose: true), new LoggingOptions(), new DiagnosticListener(""), new LoggingDefinitions()); SetFinder = setFinder; Context = context; }
/// <summary> /// <para> /// Creates the service dependencies parameter object for a <see cref="CoreConventionSetBuilder" />. /// </para> /// <para> /// Do not call this constructor directly from either provider or application code as it may change /// as new dependencies are added. Instead, use this type in your constructor so that an instance /// will be created and injected automatically by the dependency injection container. To create /// an instance with some dependent services replaced, first resolve the object from the dependency /// injection container, then replace selected services using the 'With...' methods. Do not call /// the constructor at any point in this process. /// </para> /// <para> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </para> /// </summary> public CoreConventionSetBuilderDependencies( [NotNull] ITypeMappingSource typeMappingSource, [CanBeNull] IConstructorBindingFactory constructorBindingFactory, [CanBeNull] IParameterBindingFactories parameterBindingFactories, [CanBeNull] IMemberClassifier memberClassifier, [CanBeNull] IDiagnosticsLogger <DbLoggerCategory.Model> logger, #pragma warning disable 618 [CanBeNull] ITypeMapper _ = null) // Only needed for D.I. to resolve this constructor #pragma warning restore 618 { Check.NotNull(typeMappingSource, nameof(typeMappingSource)); TypeMappingSource = typeMappingSource; if (parameterBindingFactories == null) { parameterBindingFactories = new ParameterBindingFactories( null, new RegisteredServices(Enumerable.Empty <Type>())); } ParameterBindingFactories = parameterBindingFactories; if (memberClassifier == null) { memberClassifier = new MemberClassifier( typeMappingSource, parameterBindingFactories); } MemberClassifier = memberClassifier; if (constructorBindingFactory == null) { ConstructorBindingFactory = new ConstructorBindingFactory( new PropertyParameterBindingFactory(), parameterBindingFactories); } ConstructorBindingFactory = constructorBindingFactory; Logger = logger ?? new DiagnosticsLogger <DbLoggerCategory.Model>(new LoggerFactory(), new LoggingOptions(), new DiagnosticListener("")); }
/// <summary> /// <para> /// Creates the service dependencies parameter object for a <see cref="CoreConventionSetBuilder" />. /// </para> /// <para> /// Do not call this constructor directly from either provider or application code as it may change /// as new dependencies are added. Instead, use this type in your constructor so that an instance /// will be created and injected automatically by the dependency injection container. To create /// an instance with some dependent services replaced, first resolve the object from the dependency /// injection container, then replace selected services using the 'With...' methods. Do not call /// the constructor at any point in this process. /// </para> /// <para> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </para> /// </summary> public CoreConventionSetBuilderDependencies( [NotNull] ITypeMappingSource typeMappingSource, [CanBeNull] IConstructorBindingFactory constructorBindingFactory, [CanBeNull] IParameterBindingFactories parameterBindingFactories, [CanBeNull] IMemberClassifier memberClassifier) { Check.NotNull(typeMappingSource, nameof(typeMappingSource)); TypeMappingSource = typeMappingSource; if (parameterBindingFactories == null) { parameterBindingFactories = new ParameterBindingFactories( null, new RegisteredServices(Enumerable.Empty <Type>())); } ParameterBindingFactories = parameterBindingFactories; if (memberClassifier == null) { memberClassifier = new MemberClassifier( typeMappingSource, parameterBindingFactories); } MemberClassifier = memberClassifier; if (constructorBindingFactory == null) { ConstructorBindingFactory = new ConstructorBindingFactory( new PropertyParameterBindingFactory(), parameterBindingFactories); } ConstructorBindingFactory = constructorBindingFactory; }
/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public InMemoryMappingConvention( [NotNull] ITypeMappingSource typeMappingSource) { _typeMappingSource = typeMappingSource; }
/// <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 SqlExpressionFactory([NotNull] ITypeMappingSource typeMappingSource) { _typeMappingSource = typeMappingSource; _boolTypeMapping = typeMappingSource.FindMapping(typeof(bool)); }
/// <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 QuerySqlGeneratorFactory(ITypeMappingSource typeMappingSource) { _typeMappingSource = typeMappingSource; }
/// <summary> /// Clones this dependency parameter object with one service replaced. /// </summary> /// <param name="typeMappingSource"> A replacement for the current dependency of this type. </param> /// <returns> A new parameter object with the given service replaced. </returns> public CoreConventionSetBuilderDependencies With([NotNull] ITypeMappingSource typeMappingSource) => new CoreConventionSetBuilderDependencies( typeMappingSource, ConstructorBindingFactory, ParameterBindingFactories, MemberClassifier, Logger);
/// <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 SqlExpressionFactory(ITypeMappingSource typeMappingSource, IModel model) { _typeMappingSource = typeMappingSource; _model = model; _boolTypeMapping = typeMappingSource.FindMapping(typeof(bool), model) !; }
/// <summary> /// Initializes a new instance of <see cref="CosmosStringMethodCallTranslator" />. /// </summary> /// <param name="sqlExpressionFactory">The sql expression factory.</param> /// <param name="typeMappingSource">The type mapping source.</param> public CosmosStringMethodCallTranslator( ISqlExpressionFactory sqlExpressionFactory, ITypeMappingSource typeMappingSource) { _sqlExpressionFactory = sqlExpressionFactory ?? throw new ArgumentNullException(nameof(sqlExpressionFactory)); _typeMappingSource = typeMappingSource ?? throw new ArgumentNullException(nameof(typeMappingSource)); }
/// <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 QuerySqlGeneratorFactory(ITypeMappingSource typeMappingSource) { Check.NotNull(typeMappingSource, nameof(typeMappingSource)); _typeMappingSource = typeMappingSource; }
public GameArchitectTypeConfiguration(IMetadataProvider metadataProvider, ITypeMappingSource typeMappingSource) { MetadataProvider = metadataProvider; TypeMappingSource = typeMappingSource; }
/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public InMemoryConventionSetBuilder( [NotNull] ITypeMappingSource typeMappingSource) { _typeMappingSource = typeMappingSource; }
/// <summary> /// Initializes a new instance of <see cref="CosmosMethodCallTranslatorPlugin" /> /// </summary> /// <param name="sqlExpressionFactory">The sql expression factory.</param> /// <param name="typeMappingSource">The type mapping source.</param> public CosmosMethodCallTranslatorPlugin( ISqlExpressionFactory sqlExpressionFactory, ITypeMappingSource typeMappingSource) { Translators = new[] { new CosmosStringMethodCallTranslator(sqlExpressionFactory, typeMappingSource) }; }
public CosmosSqlGeneratorFactory(ITypeMappingSource typeMappingSource) { TypeMappingSource = typeMappingSource; }
public ShapedQueryCompilingExpressionVisitorDependencies With([NotNull] ITypeMappingSource typeMappingSource) => new ShapedQueryCompilingExpressionVisitorDependencies(EntityMaterializerSource, typeMappingSource, MemoryCache);
/// <summary> /// Clones this dependency parameter object with one service replaced. /// </summary> /// <param name="typeMappingSource"> A replacement for the current dependency of this type. </param> /// <returns> A new parameter object with the given service replaced. </returns> public ProviderConventionSetBuilderDependencies With([NotNull] ITypeMappingSource typeMappingSource) => new ProviderConventionSetBuilderDependencies( typeMappingSource, ConstructorBindingFactory, ParameterBindingFactories, MemberClassifier, Logger, ValidationLogger, SetFinder, _currentContext, ModelValidator);
/// <summary> /// Clones this dependency parameter object with one service replaced. /// </summary> /// <param name="typeMappingSource"> A replacement for the current dependency of this type. </param> /// <returns> A new parameter object with the given service replaced. </returns> public ModelValidatorDependencies With([NotNull] ITypeMappingSource typeMappingSource) => new ModelValidatorDependencies(typeMappingSource, MemberClassifier);
/// <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 CSharpHelper(ITypeMappingSource typeMappingSource) { _typeMappingSource = typeMappingSource; }
public CosmosSqlGenerator(SelectExpression selectExpression, ITypeMappingSource typeMappingSource) { _selectExpression = selectExpression; _typeMappingSource = typeMappingSource; }