Skip to main content

Microsoft Silverlight

Answered Question How do I catch errors using .NET Ria Services and Linq to SQLRSS Feed

(0)

LarryDev
LarryDev

Member

Member

29 points

36 Posts

How do I catch errors using .NET Ria Services and Linq to SQL

Hello.  I was adding an additional field to my LinqToSql Class and I forgot to set the nullable option to true.  Then I have a bound textbox in my application using that field.  I left the field blank and then tried to call SubmitChanges(OnSubmitCompeleted, null) and it looks like it worked and my SubmitOperation error remains null so everything looks good but then come to find out the record did not save. 

I want the field to be null but can someone please tell me what I am doing wrong that I do not get a message back that the operation did not actually save anything?

Thanks.  Larry.

bryant
bryant

Star

Star

9937 points

1,629 Posts

Silverlight MVP
Answered Question

Re: How do I catch errors using .NET Ria Services and Linq to SQL

The SubmitOperation.HasError should be true. If it isn't, please post the code you're using se we can try to figure it out.

-- bryant

Blog | Twitter
_________________
Dont forget to click "Mark as Answer" on the post that helped you.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities