コード例 #1
0
        public static int CountUserAccessTokenByQuery(UserAccessTokenQuery query)
        {
            using (var context = new XiaoluEntities())
            {
                var repository = new UserAccessTokenRepository(context);

                int count = repository.GetPageCount(item => _isMatch(item, query));
                return count;
            }
        }
コード例 #2
0
        public static int CountUserAccessTokenByQuery(UserAccessTokenQuery query)
        {
            using (var context = new XiaoluEntities())
            {
                var repository = new UserAccessTokenRepository(context);

                int count = repository.GetPageCount(item => _isMatch(item, query));
                return(count);
            }
        }