LINQ in Action roller

[Linq to SQL beta 2] EntitySet.ListChanged not raised

Is there any sensible reason not to raise the ListChanged event of EntitySet if its IsLoaded property is false ? I don't think so. I just spent one hour trying to figure out why the following simple scenario doesn't work: Code Snippet var choice = new Choice(); // choice.Results is an entityset (it's an association - generated by the linq designer tool) choice.Results.ListChanged += delegate { /* do whatever here, IT WILL NEVER GET CALLED */ }; choice.Results.Add(new Result()); // Notification wasn't Read More...
Published Tuesday, August 28, 2007 9:52 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication