Comments are closed for this post.
Posted by
zac morris
@
01 Jul 2008
6:26 AM
Hi Josh,
Thanks for posting this script. It fills a big whole in the DataSvcUtil tool.
I ran in to this problem, maybe you've seen it too?
(Maybe this is why MS hasn't implemented it yet?)
NullReferenceException thrown with this stack trace:
System.Windows.dll!System.Windows.Data.BindingExpression.SourcePropertyChanged(object sender = {WattLink1Model.Site}, System.ComponentModel.PropertyChangedEventArgs args = {System.ComponentModel.PropertyChangedEventArgs}) + 0x6e bytes
System.Windows.dll!System.Windows.Data.WeakPropertyChangedListener.PropertyChangedCallback(object sender = {MySvcUtilGeneratedClass}, System.ComponentModel.PropertyChangedEventArgs args = {System.ComponentModel.PropertyChangedEventArgs}) + 0x59 bytes
> MyProject!MySvcUtilGeneratedClass.OnPropertyChanged(string propertyName = "Name") Line 1231 + 0x1a bytes C#
Posted by
Josh
@
01 Jul 2008
12:13 PM
Hi Zac,
No I haven't seen that issue. Admittedly I've not put the script through the most rigorous of testing but it's worked every time for me.
Can you share the original .cs file that's causing the problem? My e-mail is on the contact us page.
Posted by
Peter
@
06 Feb 2009
2:46 PM
Hi Josh,
Nice, clean simplicity.
It's been 8 months and a couple updates from Microsoft now. Is this still a valid approach? Is it still how you recommend extending the classes?
Peter
Posted by
Peter
@
11 Feb 2009
1:48 PM
Hi Josh, this is pretty slick.
INotifyPropertyChanged passes through correctly, but I'd also like to use IDataErrorInfo to handle validation on order to implement an MVVM type pattern. Did you implement IDataErrorInfo?
If so, how did you pass through the fields to the data service without passing
public string Error
which you need to declare for IDataErrorInfo?
Peter
Posted by
92
@
19 Mar 2009
5:39 PM
THANKS
Posted by
Roger
@
28 May 2009
10:03 AM
Can I 'second' on Josh's question? Any changes, is this still the best approach?
Thanks,
Roger
Posted by
josh
@
28 May 2009
12:04 PM
Hi Roger,
Check out the udpate at the top - added following your comment.
HTH