Exemplo n.º 1
0
        internal void UpsertBaseData()
        {
            context = new WimixDataContext();
            if (context.Ingredients.Count() < 100)
            {
                upsertIngredients();
                upsertColours();
            }

            context.RecipeIngredients.RemoveRange(context.RecipeIngredients);
            context.Recipes.RemoveRange(context.Recipes);
            context.SaveChanges();
            upsertRecipes();
        }
Exemplo n.º 2
0
 public WimixDataService(WimixDataContext dataContext)
 {
     _wimixDataContext = dataContext;
 }