Esempio n. 1
0
 private static void WriteRecipeIngredients(FlavorNetworkContext context)
 {
     foreach (var item in context.RecipeIngredients.Local)
     {
         Console.WriteLine("Found {0}: {1} with state {2}", item.RecipeId, item.IngredientId, context.Entry(item).State);
     }
 }
Esempio n. 2
0
 private static void WriteContributionMethods(FlavorNetworkContext context)
 {
     foreach (var item in context.ContributionMethods.Local)
     {
         Console.WriteLine("Found {0}: {1} with state {2}", item.Id, item.Name, context.Entry(item).State);
     }
 }
Esempio n. 3
0
 private static void WriteIngredientCategories(FlavorNetworkContext context)
 {
     foreach (var item in context.IngredientCategories.Local)
     {
         Console.WriteLine("Found {0}: {1} with state {2}", item.Id, item.Name, context.Entry(item).State);
     }
 }