public void PromoteToMedicine(DateTime acceptedDate, decimal targetPrice, string marketingName) { var drug = new Medicine { DrugId = this.DrugId }; using (var context = new EFRecipesEntities()) { context.AttachTo("Drugs", drug); drug.AcceptedDate = acceptedDate; drug.TargetPrice = targetPrice; drug.Name = marketingName; context.SaveChanges(); } }