private IDbCommand ParseTemplate( TemplateExpression templateExpression ) { var context = new ExcelTemplateParseContext(); var commandText = templateExpression.Parse( context ); throw new NotImplementedException(); }
private IDbCommand ParseTemplate( TemplateExpression template ) { var command = CreateCommand(); var context = new SqlTemplateParseContext(); command.CommandText = template.Parse( context ); foreach ( var p in context.GetParameters() ) command.Parameters.Add( p ); return command; }