This project is read-only.

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

Aug 5, 2010 at 7: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 12:54 PM
Edited Aug 10, 2010 at 12:55 PM

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");