示例#1
0
        public static IQuery Select <T>(this IQuery query, params Expression <Func <T, object> >[] propertySelectors)
        {
            foreach (var propertySelector in propertySelectors)
            {
                query.AddSelect(propertySelector.Body.GetMemberInfo(), typeof(T));
            }

            return(query);
        }
示例#2
0
        public static IQuery Select <T>(this IQuery query, params string[] columns)
        {
            foreach (var column in columns)
            {
                query.AddSelect(column, typeof(T));
            }

            return(query);
        }
示例#3
0
        public static IQuery SelectAs <T>(this IQuery query, Expression <Func <T, object> > propertySelector, string @as)
        {
            query.AddSelect(propertySelector.Body.GetMemberInfo(), typeof(T), @as);

            return(query);
        }
示例#4
0
        public static IQuery SelectAs <T>(this IQuery query, string column, string @as)
        {
            query.AddSelect(column, typeof(T), @as);

            return(query);
        }
示例#5
0
        public static IQuery Select <T>(this IQuery query, string column)
        {
            query.AddSelect(column, typeof(T));

            return(query);
        }
示例#6
0
        public static IQuery Select <T>(this IQuery query)
        {
            query.AddSelect(SELECT_ALL, typeof(T));

            return(query);
        }