public void Save() in Repository class throws a rule violation ERROR

Aug 5, 2010 at 6:46 PM
// Persistence public void Save() { db.SubmitChanges(); } Throws a rule violation ERROR. I have just started the tutorials and got to page 73 or something like that and when I tried to edit the dinner and clicked on SAVE The debuuger breaks out in the above mentioned error. ANy suggestions?
Aug 10, 2010 at 11:54 AM
Edited Aug 10, 2010 at 11:55 AM

RESOLVED the issue,,,, everything I coded works fine after commenting the following validation method

//partial void OnValidate(ChangeAction action)

//{

// if (!IsValid)

// throw new ApplicationException("Rule violations prevent saving");

//}