Esempio n. 1
0
        public int Count(string aliasName)
        {
            IQuery <int> query = QueryFactory.CreateVisitCountByAlias(aliasName);

            return(query.Execute(Database));
        }
Esempio n. 2
0
        public int GetVisitedCount(DateTime fromDate, DateTime toDate)
        {
            IQuery <int> query = QueryFactory.CreateUserVisitedCountByDates(fromDate, toDate);

            return(query.Execute(Database));
        }
Esempio n. 3
0
        public User GetByName(string name)
        {
            IQuery <User> query = QueryFactory.CreateUserByName(name);

            return(query.Execute(Database));
        }
Esempio n. 4
0
        public User GetByApiKey(string apiKey)
        {
            IQuery <User> query = QueryFactory.CreateUserByApiKey(apiKey);

            return(query.Execute(Database));
        }
Esempio n. 5
0
        public override User GetById(long id)
        {
            IQuery <User> query = QueryFactory.CreateUserById(id);

            return(query.Execute(Database));
        }