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); }
public IEnumerable <Animal> GetAnimalsForUser() { var user = 1; return(connection.GetConnection().Query <Animal>("GetAnimalsForUser", new { UserId = user }, commandType: CommandType.StoredProcedure)); }