private static void SanitizeExpression <T>(Expression <Func <T, bool> > expression, ref StringBuilder expressionString) { foreach (var parameter in expression.Parameters) { expressionString.Replace($"{parameter.Name}.", ""); } foreach (Match match in Regex.Matches(expressionString.ToString(), @"(#\w+)+")) { expressionString.Replace(match.Value, DynamoAttributeParser.GetPropertyAttribute(match.Value.Substring(1))); } }
private static string GetPropertyReference(Expression expression) { return(DynamoAttributeParser.GetPropertyAttribute(expression.ToString())); }