Beispiel #1
0
        /// <summary>
        /// Query Items of T
        /// </summary>
        /// <param name="predicate"></param>
        /// <returns></returns>
        public virtual IEnumerable <T> QueryItems(Expression <Func <T, bool> > predicate)
        {
            if (targetSqlSession == null)
            {
                throw new InvalidOperationException("targetSqlSession should be set before using SqlDataAccess");
            }

            return(targetSqlSession.QueryItems <T>(predicate));
        }