Exemple #1
0
        /// <summary>
        /// 选择被排除以外的列(用于列多时排除某几列的情况)
        /// </summary>
        /// <param name="field"></param>
        /// <returns></returns>
        public QuerySection <T> Select(ExcludeField field)
        {
            List <Field> list = new List <Field>(fromSection.GetSelectFields());

            list.RemoveAll(f =>
            {
                if (field.Fields.Contains(f))
                {
                    return(true);
                }
                return(false);
            });

            return(Select(list.ToArray()));
        }
Exemple #2
0
 /// <summary>
 /// 选择被排除以外的列(用于列多时排除某几列的情况)
 /// </summary>
 /// <param name="field"></param>
 /// <returns></returns>
 public QuerySection <T> Select(ExcludeField field)
 {
     return(query.Select(field));
 }