예제 #1
0
 private SimpleQuery ParseThenBy(string methodName)
 {
     methodName = Regex.Replace(methodName, "^then_?by_?", "", RegexOptions.IgnoreCase);
     if (methodName.EndsWith("descending", StringComparison.OrdinalIgnoreCase))
     {
         methodName = Regex.Replace(methodName, "_?descending$", "", RegexOptions.IgnoreCase);
         return(ThenByDescending(ObjectReference.FromString(_tableName + "." + methodName)));
     }
     return(ThenBy(ObjectReference.FromString(_tableName + "." + methodName)));
 }