示例#1
0
 public void AddRecipes(string recipeName, string recipeDescription)
 {
     using (var ctx = new recipesEntities())
     {
         ctx.iRecipe(recipeName, recipeDescription);
     }
 }
示例#2
0
        /// <summary>
        /// Hello Pete
        /// </summary>
        /// <returns></returns>
        public List<Recipe_Master> GetRecipes()
        {
            using (var ctx = new recipesEntities())
            {
                var results = from x in ctx.Recipe_Master
                              select x;

                return results.ToList();
            }
        }