예제 #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));
        }