public void InsertCustomerRating() { var context = new SidejobModel.SidejobEntities(); var customerrating = new SidejobModel.CustomerRating { RateID = GetNextRatingID(), CustomerID = _nextCustomerID, Postive = 0, Negative = 0, Neutral = 0, Total = 0, Percentage = 0, IntRate1 = 0, DoubleRate = 0, IntRate = 0 }; context.AddToCustomerRatings(customerrating); }