ok, this is kind of funny. I have an InsertAction() function to do some error checks before inserting into the database. The problem is that I'm using myContext.InserOnSubmit() from within this OnValidate function and that causes an infinite loop (the class keeps calling itself)
am i supposed to just set some property to True or something to let this execute?
partial void OnValidate(System.Data.Linq.ChangeAction action)
{
// take care of inserts
switch (action)
{
case System.Data.Linq.ChangeAction.Insert:
InsertAction();
break;
}
}