When Querying we need to use the Alias to search for, in stead of the name, this is due to names like "Created Date" and "Last Updated Date", who has aliases like "CreateDate", and "UpdateDate"

This commit is contained in:
mikkelhm
2016-12-28 14:07:22 +01:00
parent dea3553885
commit 19f7e6bd88

View File

@@ -13,7 +13,7 @@
{
private static string MakeBinaryOperation(this QueryCondition condition, string operand, int token)
{
return string.Format("{0}{1}@{2}", condition.Property.Name, operand, token);
return string.Format("{0}{1}@{2}", condition.Property.Alias, operand, token);
}