Пример #1
0
 private static string FormatSpecialReference(SpecialReference reference)
 {
     if (reference.GetType() == typeof(CountSpecialReference))
     {
         return("COUNT(*)");
     }
     if (reference.GetType() == typeof(ExistsSpecialReference))
     {
         return("DISTINCT 1");
     }
     throw new InvalidOperationException("SpecialReference type not recognised.");
 }
Пример #2
0
 private string FormatSpecialReference(SpecialReference reference)
 {
     if (reference.GetType() == typeof(CountSpecialReference))
     {
         return("$count");
     }
     throw new InvalidOperationException("SpecialReference type not recognised.");
 }
Пример #3
0
 private static string FormatSpecialReference(SpecialReference reference)
 {
     if (reference.GetType() == typeof(CountSpecialReference)) return "COUNT(*)";
     if (reference.GetType() == typeof(ExistsSpecialReference)) return "DISTINCT 1";
     throw new InvalidOperationException("SpecialReference type not recognised.");
 }
Пример #4
0
 private string FormatSpecialReference(SpecialReference reference)
 {
     if (reference.GetType() == typeof(CountSpecialReference)) return "$count";
     throw new InvalidOperationException("SpecialReference type not recognised.");
 }