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."); }
private string FormatSpecialReference(SpecialReference reference) { if (reference.GetType() == typeof(CountSpecialReference)) { return("$count"); } throw new InvalidOperationException("SpecialReference type not recognised."); }
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."); }
private string FormatSpecialReference(SpecialReference reference) { if (reference.GetType() == typeof(CountSpecialReference)) return "$count"; throw new InvalidOperationException("SpecialReference type not recognised."); }