A fix for hours of misery
Funny how such a simple line of code can cause hours of misery... the fix:
private void da_RowUpdating(object sender, SqlRowUpdatingEventArgs e)
{
if(e.StatementType != StatementType.Delete) <--this line
{
//...
}
}
BLAH!!! I should know better than that... oh well. I guess we all have brain farts every once in a while...
Update: I was too lazy to fix the formatting of the lines of code for this entry, which is off... normally it's much prettier ;-)
private void da_RowUpdating(object sender, SqlRowUpdatingEventArgs e)
{
if(e.StatementType != StatementType.Delete) <--this line
{
//...
}
}
BLAH!!! I should know better than that... oh well. I guess we all have brain farts every once in a while...
Update: I was too lazy to fix the formatting of the lines of code for this entry, which is off... normally it's much prettier ;-)

1 Comments:
Ouch! Sounds like someone needs to do code reviews before they check their stuff in to the repository :-D
By Matt Swann, at 8:42 AM
Post a Comment
<< Home