public InterpolatedQuery Compile(Sql command) { if (_aux.IsEvaluationNeeded || _aux.IsCommandRunNeeded) { return(command.StrokeExpression .ParseStroke() .VisitStroke(_runtime.Mapper.IsEntityType) .LanguageInterpolateStroke(_runtime.GetLanguageInterpolator()) .SchemaInterpolateStroke(_runtime.GetSchemaInterpolator())); } else { return(command.Preview); } }
public InterpolatedQuery Compile(Sql command) { if (!_aux.ProvidesTestData) { return(command.StrokeExpression .ParseStroke() .VisitStroke(_runtime.Mapper.IsEntityType) .LanguageInterpolateStroke(_runtime.GetLanguageInterpolator()) .SchemaInterpolateStroke(_runtime.GetSchemaInterpolator())); } else { return(command.Preview); } }