public MySqlSqlTranslatingExpressionVisitorFactory(
     [NotNull] RelationalSqlTranslatingExpressionVisitorDependencies dependencies,
     [NotNull] IServiceProvider serviceProvider)
 {
     _dependencies       = dependencies;
     _jsonPocoTranslator = serviceProvider.GetService <IMySqlJsonPocoTranslator>();
 }
Esempio n. 2
0
 public MySqlSqlTranslatingExpressionVisitor(
     RelationalSqlTranslatingExpressionVisitorDependencies dependencies,
     QueryCompilationContext queryCompilationContext,
     QueryableMethodTranslatingExpressionVisitor queryableMethodTranslatingExpressionVisitor,
     [CanBeNull] IMySqlJsonPocoTranslator jsonPocoTranslator)
     : base(dependencies, queryCompilationContext, queryableMethodTranslatingExpressionVisitor)
 {
     _jsonPocoTranslator   = jsonPocoTranslator;
     _sqlExpressionFactory = (MySqlSqlExpressionFactory)Dependencies.SqlExpressionFactory;
 }
Esempio n. 3
0
        public MySqlJsonMicrosoftMethodCallTranslatorPlugin(
            IRelationalTypeMappingSource typeMappingSource,
            ISqlExpressionFactory sqlExpressionFactory,
            IMySqlJsonPocoTranslator jsonPocoTranslator)
        {
            var mySqlSqlExpressionFactory = (MySqlSqlExpressionFactory)sqlExpressionFactory;
            var mySqlJsonPocoTranslator   = (MySqlJsonPocoTranslator)jsonPocoTranslator;

            Translators = new IMethodCallTranslator[]
            {
                new MySqlJsonMicrosoftDomTranslator(
                    mySqlSqlExpressionFactory,
                    typeMappingSource,
                    mySqlJsonPocoTranslator),
            };
        }