Пример #1
0
 private void AppendIdListCheckIfNotEmpty(StringBuilder sb, string tableNameAndColumn, int[] ids)
 {
     if ((ids != null) && (ids.Length > 0))
     {
         string idsConcatenated = DbHelpers.GetCommaSeparatedList <int>(ids);
         sb.AppendFormat(string.Format(@"
                 AND ({0} IN ({1}))
         ", tableNameAndColumn, idsConcatenated));
     }
 }