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(); }
public WimixDataService(WimixDataContext dataContext) { _wimixDataContext = dataContext; }