示例#1
0
        public IQueryable <ModelToken> GetTokensByTokenString(string tokenstring)
        {
            var model = new ModelToken();

            return(model.Get(_ctx).Where(x => x.TokenString == tokenstring));
        }
示例#2
0
        public IQueryable <ModelToken> GetTokensByTest(int testid)
        {
            var model = new ModelToken();

            return(model.Get(_ctx).Where(x => x.TestID == testid));
        }
示例#3
0
        public IQueryable <ModelToken> GetTokensByUsername(string username)
        {
            var model = new ModelToken();

            return(model.Get(_ctx).Where(x => x.Username == username));
        }
示例#4
0
        public ModelToken GetTokenByUsernameAndTest(string username, int testid)
        {
            var model = new ModelToken();

            return(model.Get(_ctx).Where(x => x.Username == username).FirstOrDefault(x => x.TestID == testid));
        }
示例#5
0
        public ModelToken GetToken(int tokenid)
        {
            var model = new ModelToken();

            return(model.Get(_ctx).FirstOrDefault(x => x.TokenID == tokenid));
        }
示例#6
0
        public IQueryable <ModelToken> ReadTokens()
        {
            var model = new ModelToken();

            return(model.Get(_ctx));
        }