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; } }
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); } }