public NpgsqlPostgresExtensionDiscoveryConvention(IRelationalTypeMappingSource typeMappingSource) { _typeMappingSource = typeMappingSource; }
public EFCoreMetadataReader(IModel model, RelationalSqlTranslatingExpressionVisitorDependencies dependencies, IRelationalTypeMappingSource mappingSource) { _model = model; _dependencies = dependencies; _mappingSource = mappingSource; }
public NpgsqlFuzzyStringMatchMethodCallTranslatorPlugin( IRelationalTypeMappingSource typeMappingSource, ISqlExpressionFactory sqlExpressionFactory) => Translators = new IMethodCallTranslator[]
public static RelationalTypeMapping GetMapping( IRelationalTypeMappingSource typeMappingSource, IProperty property) => typeMappingSource.FindMapping(property);
/// <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 RelationalConventionSetBuilderDependencies With([NotNull] IRelationalTypeMappingSource typeMappingSource) => new RelationalConventionSetBuilderDependencies(typeMappingSource, Logger, Context, SetFinder);
/// <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 RelationalParameterBasedQueryTranslationPostprocessorDependencies With([NotNull] IRelationalTypeMappingSource typeMappingSource) => new RelationalParameterBasedQueryTranslationPostprocessorDependencies(SqlExpressionFactory, typeMappingSource, ParameterNameGeneratorFactory);
/// <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([NotNull] IRelationalTypeMappingSource relationalTypeMappingSource) { _relationalTypeMappingSource = relationalTypeMappingSource; }
public SqlServerPolygonMemberTranslator(IRelationalTypeMappingSource typeMappingSource, ISqlExpressionFactory sqlExpressionFactory) { _typeMappingSource = typeMappingSource; _sqlExpressionFactory = sqlExpressionFactory; }
public MySQLCommandBuilder( [NotNull] IDiagnosticsLogger <DbLoggerCategory.Database.Command> logger, [NotNull] IRelationalTypeMappingSource typeMappingSource) : base(logger, 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 RelationalConventionSetBuilderDependencies With([NotNull] IRelationalTypeMappingSource typeMappingSource) #pragma warning disable 618 => new RelationalConventionSetBuilderDependencies(typeMappingSource, Logger, Context, SetFinder, TypeMapper);
/// <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 RelationalCommandBuilderDependencies With([NotNull] IRelationalTypeMappingSource typeMappingSource) => new RelationalCommandBuilderDependencies(typeMappingSource);
public OracleRelationalCommandBuilder( IDiagnosticsLogger <DbLoggerCategory.Database.Command> logger, IRelationalTypeMappingSource typeMappingSource) : base(logger, typeMappingSource) { }
protected override IRelationalCommandBuilder CreateCore( IDiagnosticsLogger <DbLoggerCategory.Database.Command> logger, IRelationalTypeMappingSource relationalTypeMappingSource) => new OracleRelationalCommandBuilder(logger, relationalTypeMappingSource);
/// <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 ScaffoldingTypeMapper([NotNull] IRelationalTypeMappingSource typeMappingSource) { Check.NotNull(typeMappingSource, nameof(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 RelationalModelValidatorDependencies With([NotNull] IRelationalTypeMappingSource typeMappingSource) #pragma warning disable 618 => new RelationalModelValidatorDependencies(TypeMapper, 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 SqlServerGeometryMethodTranslator(IRelationalTypeMappingSource typeMappingSource) => _typeMappingSource = typeMappingSource;
public MySqlSqlExpressionFactory(SqlExpressionFactoryDependencies dependencies) : base(dependencies) { _typeMappingSource = dependencies.TypeMappingSource; _boolTypeMapping = _typeMappingSource.FindMapping(typeof(bool)); }
public NpgsqlNetTopologySuiteMemberTranslatorPlugin( IRelationalTypeMappingSource typeMappingSource, ISqlExpressionFactory sqlExpressionFactory) => Translators = new IMemberTranslator[]
/// <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 RelationalModelValidatorDependencies With([NotNull] IRelationalTypeMappingSource typeMappingSource) => new RelationalModelValidatorDependencies(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 RelationalValueBufferFactoryDependencies With([NotNull] IRelationalTypeMappingSource typeMappingSource) => new RelationalValueBufferFactoryDependencies(typeMappingSource, CoreOptions);
/// <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 SqlServerQuerySqlGenerator(QuerySqlGeneratorDependencies dependencies, IRelationalTypeMappingSource typeMappingSource) : base(dependencies) { _typeMappingSource = typeMappingSource; }
public NpgsqlJsonDomTranslator(NpgsqlSqlExpressionFactory sqlExpressionFactory, IRelationalTypeMappingSource typeMappingSource) { _sqlExpressionFactory = sqlExpressionFactory; _stringTypeMapping = typeMappingSource.FindMapping(typeof(string)); }
/// <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 MigrationsSqlGeneratorDependencies With([NotNull] IRelationalTypeMappingSource typeMappingSource) => new MigrationsSqlGeneratorDependencies( CommandBuilderFactory, UpdateSqlGenerator, SqlGenerationHelper, typeMappingSource);
public NpgsqlJsonDbFunctionsTranslator(NpgsqlSqlExpressionFactory sqlExpressionFactory, IRelationalTypeMappingSource typeMappingSource) { _sqlExpressionFactory = sqlExpressionFactory; _boolTypeMapping = typeMappingSource.FindMapping(typeof(bool)); _stringTypeMapping = typeMappingSource.FindMapping(typeof(string)); _jsonbTypeMapping = typeMappingSource.FindMapping("jsonb"); }
public NpgsqlRumMethodTranslator(NpgsqlSqlExpressionFactory sqlExpressionFactory, IRelationalTypeMappingSource typeMappingSource) { _sqlExpressionFactory = sqlExpressionFactory; _doubleMapping = typeMappingSource.FindMapping(typeof(double)); }
public EntityContext Generate(GeneratorOptions options, DatabaseModel databaseModel, IRelationalTypeMappingSource typeMappingSource) { if (databaseModel == null) { throw new ArgumentNullException(nameof(databaseModel)); } _logger.LogInformation("Building code generation model from database: {databaseName}", databaseModel.DatabaseName); _options = options ?? throw new ArgumentNullException(nameof(options)); _typeMapper = typeMappingSource; var entityContext = new EntityContext(); entityContext.DatabaseName = databaseModel.DatabaseName; // update database variables _options.Database.Name = ToLegalName(databaseModel.DatabaseName); string projectNamespace = _options.Project.Namespace; _options.Project.Namespace = projectNamespace; string contextClass = _options.Data.Context.Name; contextClass = _namer.UniqueClassName(contextClass); string contextNamespace = _options.Data.Context.Namespace; string contextBaseClass = _options.Data.Context.BaseClass; entityContext.ContextClass = contextClass; entityContext.ContextNamespace = contextNamespace; entityContext.ContextBaseClass = contextBaseClass; var tables = databaseModel.Tables; foreach (var t in tables) { _logger.LogDebug(" Processing Table : {tableName}", t.Name); var entity = GetEntity(entityContext, t); GetModels(entity); } return(entityContext); }
/// <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 SqliteQueryStringFactory([NotNull] IRelationalTypeMappingSource typeMapper) { _typeMapper = typeMapper; }
public SqlExpressionFactory(IRelationalTypeMappingSource typeMappingSource) { _typeMappingSource = typeMappingSource; _boolTypeMapping = typeMappingSource.FindMapping(typeof(bool)); }
public MySqlJsonNewtonsoftPocoTranslator( [NotNull] IRelationalTypeMappingSource typeMappingSource, [NotNull] ISqlExpressionFactory sqlExpressionFactory) : base(typeMappingSource, (MySqlSqlExpressionFactory)sqlExpressionFactory) { }
/// <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 SqlServerLineStringMethodTranslator(IRelationalTypeMappingSource typeMappingSource) => _typeMappingSource = typeMappingSource;