Normalize cr/lf/tab
This commit is contained in:
@@ -11,4 +11,4 @@
|
||||
GreaterThan = 7,
|
||||
GreaterThanEqualTo = 8
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,4 +22,4 @@ namespace Umbraco.Web.Models.TemplateQuery
|
||||
public Operathor Operathor { get; set; }
|
||||
public IEnumerable<string> AppliesTo { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
public class QueryCondition
|
||||
{
|
||||
|
||||
|
||||
public PropertyModel Property { get; set; }
|
||||
public OperathorTerm Term { get; set; }
|
||||
public string ConstraintValue { get; set; }
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
internal static class QueryConditionExtensions
|
||||
{
|
||||
|
||||
|
||||
public static string BuildTokenizedCondition(this QueryCondition condition, int token)
|
||||
{
|
||||
return condition.BuildConditionString(string.Empty, token);
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
private static string BuildConditionString(this QueryCondition condition, string prefix, int token = -1)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
var operand = string.Empty;
|
||||
@@ -88,11 +88,11 @@
|
||||
|
||||
if (string.IsNullOrEmpty(value) == false)
|
||||
return value;
|
||||
|
||||
|
||||
|
||||
|
||||
return string.Format("{0}{1}{2}{3}", prefix, condition.Property.Alias, operand, constraintValue);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,4 +10,4 @@ namespace Umbraco.Web.Models.TemplateQuery
|
||||
public SortExpression Sort { get; set; }
|
||||
public int Take { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
|
||||
namespace Umbraco.Web.Models.TemplateQuery
|
||||
{
|
||||
|
||||
|
||||
public class QueryResultModel
|
||||
{
|
||||
|
||||
|
||||
public string QueryExpression { get; set; }
|
||||
public IEnumerable<TemplateQueryResult> SampleResults { get; set; }
|
||||
public int ResultCount { get; set; }
|
||||
public double ExecutionTime { get; set; }
|
||||
public int Take { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
|
||||
public string Direction { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user