Esempio n. 1
0
        public IEnumerable <FoodItem> GetFoodForUsers()
        {
            var user = 1;

            return(connectionWrapper.GetConnection().Query <FoodItem>("GetFoodItemsForUser", new { UserId = user }, commandType: CommandType.StoredProcedure));
        }
 private SQLiteConnection GetConnection()
 {
     return(_connectionWrapper.GetConnection() as SQLiteConnection);
 }
Esempio n. 3
0
        public IEnumerable <Animal> GetAnimalsForUser()
        {
            var user = 1;

            return(connection.GetConnection().Query <Animal>("GetAnimalsForUser", new { UserId = user }, commandType: CommandType.StoredProcedure));
        }