public void Add(T entity) { //if (typeof(T) == typeof(Rezept)) // context.Rezepte.Add(entity as Rezept); context.Set <T>().Add(entity); }