Esempio n. 1
0
        public static string Format(VfpProviderManifest vfpManifest, System.Data.Entity.Core.Common.CommandTrees.DbQueryCommandTree dbQueryCommandTree, out List <DbParameter> parameters)
        {
            var visitor       = new ExpressionConverterVisitor();
            var VfpExpression = visitor.Visit(dbQueryCommandTree.Query);

            return(Format(vfpManifest, VfpExpression, out parameters));
        }
        private static T GetCommandTreeExpression <T>(VfpProviderManifest vfpManifest, System.Data.Entity.Core.Common.CommandTrees.DbCommandTree commandTree) where T : VfpCommandTree
        {
            var visitor          = new ExpressionConverterVisitor();
            var queryCommandTree = visitor.Visit(commandTree);

            return((T)ExpressionRewritter.Rewrite(vfpManifest, queryCommandTree));
        }