public AdncQuerySqlGenerator(
     [NotNull] QuerySqlGeneratorDependencies dependencies,
     [NotNull] MySqlSqlExpressionFactory sqlExpressionFactory,
     [CanBeNull] IMySqlOptions options)
     : base(dependencies, sqlExpressionFactory, options)
 {
     ContextId = Guid.NewGuid();
 }
Пример #2
0
 public MySqlSmartTypeMapper(
     [NotNull] RelationalTypeMapperDependencies dependencies,
     [NotNull] IMySqlOptions options)
     : base(dependencies)
 {
     Check.NotNull(options, nameof(options));
     _options = options;
 }
Пример #3
0
 public MySqlTypeMappingSource(
     [NotNull] TypeMappingSourceDependencies dependencies,
     [NotNull] RelationalTypeMappingSourceDependencies relationalDependencies,
     [NotNull] IMySqlOptions options)
     : base(dependencies, relationalDependencies)
 {
     _options = options;
 }
Пример #4
0
 public ReplacementTypeMappingSource(
     TypeMappingSourceDependencies dependencies,
     RelationalTypeMappingSourceDependencies relationalDependencies,
     IMySqlOptions options,
     IMySqlConnectionInfo connectionInfo)
     : base(dependencies, relationalDependencies, options, connectionInfo)
 {
 }
 public MySqlGeometryMethodTranslator(
     IRelationalTypeMappingSource typeMappingSource,
     ISqlExpressionFactory sqlExpressionFactory,
     IMySqlOptions options)
 {
     _typeMappingSource    = typeMappingSource;
     _sqlExpressionFactory = sqlExpressionFactory;
     _options = options;
 }
Пример #6
0
 public ShardingMySqlQuerySqlGeneratorFactory(
     QuerySqlGeneratorDependencies dependencies,
     ISqlExpressionFactory sqlExpressionFactory,
     IMySqlOptions options)
 {
     this._dependencies         = dependencies;
     this._sqlExpressionFactory = (MySqlSqlExpressionFactory)sqlExpressionFactory;
     this._options = options;
 }
 public MySqlQueryTranslationPostprocessorFactory(
     QueryTranslationPostprocessorDependencies dependencies,
     RelationalQueryTranslationPostprocessorDependencies relationalDependencies,
     IMySqlOptions options)
 {
     _dependencies           = dependencies;
     _relationalDependencies = relationalDependencies;
     _options = options;
 }
Пример #8
0
 public MySqlParameterBasedSqlProcessor(
     [NotNull] RelationalParameterBasedSqlProcessorDependencies dependencies,
     bool useRelationalNulls,
     IMySqlOptions options)
     : base(dependencies, useRelationalNulls)
 {
     _options = options;
     _sqlNullabilityProcessor = new MySqlSqlNullabilityProcessor(dependencies, useRelationalNulls);
 }
Пример #9
0
 public MySqlLineStringMemberTranslator(
     IRelationalTypeMappingSource typeMappingSource,
     ISqlExpressionFactory sqlExpressionFactory,
     IMySqlOptions options)
 {
     _typeMappingSource    = typeMappingSource;
     _sqlExpressionFactory = sqlExpressionFactory;
     _options = options;
 }
Пример #10
0
 public MySqlQueryTranslationPostprocessor(
     QueryTranslationPostprocessorDependencies dependencies,
     RelationalQueryTranslationPostprocessorDependencies relationalDependencies,
     QueryCompilationContext queryCompilationContext,
     IMySqlOptions options)
     : base(dependencies, relationalDependencies, queryCompilationContext)
 {
     _options = options;
 }
 /// <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 MySqlQuerySqlGenerator(
     [NotNull] QuerySqlGeneratorDependencies dependencies,
     [NotNull] MySqlSqlExpressionFactory sqlExpressionFactory,
     [CanBeNull] IMySqlOptions options)
     : base(dependencies)
 {
     _sqlExpressionFactory = sqlExpressionFactory;
     _options = options;
 }
 public AdncMySqlQuerySqlGeneratorFactory(
     [NotNull] QuerySqlGeneratorDependencies dependencies,
     ISqlExpressionFactory sqlExpressionFactory,
     IMySqlOptions options) : base(dependencies, sqlExpressionFactory, options)
 {
     _dependencies         = dependencies;
     _sqlExpressionFactory = (MySqlSqlExpressionFactory)sqlExpressionFactory;
     _options = options;
 }
 public MySqlParameterBasedSqlProcessor(
     [NotNull] RelationalParameterBasedSqlProcessorDependencies dependencies,
     bool useRelationalNulls,
     IMySqlOptions options)
     : base(dependencies, useRelationalNulls)
 {
     _sqlExpressionFactory = (MySqlSqlExpressionFactory)Dependencies.SqlExpressionFactory;
     _options = options;
 }
 public MySqlJsonDbFunctionsTranslator(
     [NotNull] MySqlSqlExpressionFactory sqlExpressionFactory,
     [NotNull] IRelationalTypeMappingSource typeMappingSource,
     IMySqlOptions options)
 {
     _sqlExpressionFactory = sqlExpressionFactory;
     _options           = options;
     _stringTypeMapping = typeMappingSource.FindMapping(typeof(string));
 }
Пример #15
0
        /// <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 MySqlNetTopologySuiteTypeMappingSourcePlugin(
            [NotNull] NtsGeometryServices geometryServices,
            [NotNull] IMySqlOptions options)
        {
            Check.NotNull(geometryServices, nameof(geometryServices));

            _geometryServices = geometryServices;
            _options          = options;
        }
Пример #16
0
 public MySqlSpatialDbFunctionsExtensionsMethodTranslator(
     IRelationalTypeMappingSource typeMappingSource,
     MySqlSqlExpressionFactory sqlExpressionFactory,
     IMySqlOptions options)
 {
     _sqlExpressionFactory = sqlExpressionFactory;
     _typeMappingSource    = typeMappingSource;
     _options = options;
 }
 public MySqlStringMethodTranslator(
     MySqlSqlExpressionFactory sqlExpressionFactory,
     MySqlTypeMappingSource typeMappingSource,
     IMySqlOptions options)
 {
     _sqlExpressionFactory = sqlExpressionFactory;
     _typeMappingSource    = typeMappingSource;
     _options = options;
 }
Пример #18
0
 public MySqlTypeMappingSource(
     [NotNull] TypeMappingSourceDependencies dependencies,
     [NotNull] RelationalTypeMappingSourceDependencies relationalDependencies,
     [NotNull] IMySqlOptions options,
     [NotNull] IMySqlConnectionInfo connectionInfo)
     : base(dependencies, relationalDependencies)
 {
     _options        = options;
     _connectionInfo = connectionInfo;
 }
        public MySqlDatabaseModelFactory(
            [NotNull] IDiagnosticsLogger <DbLoggerCategory.Scaffolding> logger,
            IMySqlOptions options)
        {
            Check.NotNull(logger, nameof(logger));

            _logger  = logger;
            _options = options;
            Settings = new MySqlScaffoldingConnectionSettings(string.Empty);
        }
Пример #20
0
 /// <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 MySqlJsonMemberTranslatorPlugin(
     IRelationalTypeMappingSource typeMappingSource,
     ISqlExpressionFactory sqlExpressionFactory,
     IMySqlOptions options)
 {
     Translators = new IMemberTranslator[]
     {
         //new MySqlGeometryMemberTranslator(typeMappingSource, sqlExpressionFactory),
     };
 }
 // Called via reflection.
 // ReSharper disable once UnusedMember.Global
 public MySqlJsonNewtonsoftTypeMapping(
     [NotNull] string storeType,
     [CanBeNull] ValueConverter valueConverter,
     [NotNull] IMySqlOptions options)
     : base(
         storeType,
         valueConverter,
         options)
 {
 }
Пример #22
0
 public MySqlMigrationsSqlGenerator(
     [NotNull] MigrationsSqlGeneratorDependencies dependencies,
     [NotNull] IMigrationsAnnotationProvider migrationsAnnotations,
     [NotNull] IMySqlOptions options)
     : base(dependencies)
 {
     _migrationsAnnotations = migrationsAnnotations;
     _options           = options;
     _stringTypeMapping = dependencies.TypeMappingSource.GetMapping(typeof(string));
 }
 /// <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>
 protected MySqlStringTypeMapping(
     RelationalTypeMappingParameters parameters,
     MySqlDbType mySqlDbType,
     IMySqlOptions options,
     bool isUnquoted)
     : base(parameters, mySqlDbType)
 {
     _maxSpecificSize = CalculateSize(parameters.Unicode, parameters.Size);
     _options         = options;
     IsUnquoted       = isUnquoted;
 }
 public MySqlQueryTranslationPostprocessor(
     QueryTranslationPostprocessorDependencies dependencies,
     RelationalQueryTranslationPostprocessorDependencies relationalDependencies,
     QueryCompilationContext queryCompilationContext,
     IMySqlOptions options,
     MySqlSqlExpressionFactory sqlExpressionFactory)
     : base(dependencies, relationalDependencies, queryCompilationContext)
 {
     _options = options;
     _sqlExpressionFactory = sqlExpressionFactory;
 }
Пример #25
0
 public MySqlQueryTranslationPostprocessorFactory(
     QueryTranslationPostprocessorDependencies dependencies,
     RelationalQueryTranslationPostprocessorDependencies relationalDependencies,
     IMySqlOptions options,
     ISqlExpressionFactory sqlExpressionFactory)
 {
     _dependencies           = dependencies;
     _relationalDependencies = relationalDependencies;
     _options = options;
     _sqlExpressionFactory = (MySqlSqlExpressionFactory)sqlExpressionFactory;
 }
Пример #26
0
        public MySqlDatabaseModelFactory(
            [NotNull] IDiagnosticsLogger <DbLoggerCategory.Scaffolding> logger,
            IServiceProvider serviceProvider,
            IMySqlOptions options)
        {
            Check.NotNull(logger, nameof(logger));

            _logger          = logger;
            _serviceProvider = serviceProvider;
            _options         = options;
        }
 public MySqlJsonTypeMapping(
     [NotNull] string storeType,
     [CanBeNull] ValueConverter valueConverter,
     [CanBeNull] ValueComparer valueComparer,
     [NotNull] IMySqlOptions options)
     : base(
         storeType,
         typeof(T),
         valueConverter,
         valueComparer,
         options)
 {
 }
Пример #28
0
 /// <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 MySqlNetTopologySuiteMethodCallTranslatorPlugin(
     IRelationalTypeMappingSource typeMappingSource,
     ISqlExpressionFactory sqlExpressionFactory,
     IMySqlOptions options)
 {
     Translators = new IMethodCallTranslator[]
     {
         new MySqlGeometryMethodTranslator(typeMappingSource, sqlExpressionFactory, options),
         new MySqlGeometryCollectionMethodTranslator(typeMappingSource, sqlExpressionFactory),
         new MySqlLineStringMethodTranslator(typeMappingSource, sqlExpressionFactory),
         new MySqlPolygonMethodTranslator(typeMappingSource, sqlExpressionFactory),
         new MySqlSpatialDbFunctionsExtensionsMethodTranslator(sqlExpressionFactory, options)
     };
 }
        public MySqlDatabaseModelFactory(
            [NotNull] IDiagnosticsLogger <DbLoggerCategory.Scaffolding> logger,
            [NotNull] IRelationalTypeMappingSource typeMappingSource,
            [NotNull] IMySqlOptions options)
        {
            Check.NotNull(logger, nameof(logger));
            Check.NotNull(typeMappingSource, nameof(typeMappingSource));
            Check.NotNull(options, nameof(options));

            _logger            = logger;
            _typeMappingSource = typeMappingSource;
            _options           = options;
            Settings           = new MySqlScaffoldingConnectionSettings(string.Empty);
        }
 /// <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 MySqlNetTopologySuiteMemberTranslatorPlugin(
     IRelationalTypeMappingSource typeMappingSource,
     ISqlExpressionFactory sqlExpressionFactory,
     IMySqlOptions options)
 {
     Translators = new IMemberTranslator[]
     {
         new MySqlGeometryMemberTranslator(typeMappingSource, sqlExpressionFactory),
         new MySqlGeometryCollectionMemberTranslator(sqlExpressionFactory),
         new MySqlLineStringMemberTranslator(typeMappingSource, sqlExpressionFactory, options),
         new MySqlMultiLineStringMemberTranslator(sqlExpressionFactory),
         new MySqlPointMemberTranslator(sqlExpressionFactory),
         new MySqlPolygonMemberTranslator(typeMappingSource, sqlExpressionFactory)
     };
 }