Home
  Latest posts
  My Writings
  My Code
  My Gallery
  About me
 
  rssfeed Syndication
 
Bloggtoppen.se
 
 
Links
  Cornerstone
  SweNug
 
Post categories
  misc (48)
  Architecture (21)
  C# (19)
  Asp.Net (2)
  Vb.Net (2)
  Training (7)
  Data (19)
  Events (40)
  Platform (2)
  Orcas (4)
  Updates (3)
  Methods (10)
  Tools (6)
  Announcements (14)
  Languages (1)
  Patterns (6)
  Opinions (11)
  Fun (3)
  Ineta (1)
  Opinion (0)
  Practices (2)
  WCF (5)
 
 
 

Finding the DataContext for a Single Linq To Sql Object - A Second Attempt

Friday, February 08, 2008

You can find the first attempt here: https://lowendahl.net/showShout.aspx?id=184

The basic idea is to find the DataContext used when fetching a single object from that object later in the application life-cycle.

I've re-written the whole enchilada now to an extension method that extends INotifyPropertyChanging.

The syntax for getting the context is now:

DataContext context = propduct.GetDataContextFromMe();

or

NorthwindDataContext = product.GetDataContextFromMe();

For a typed version.

You can find and download the extension class here: https://lowendahl.net/shoutCode.aspx

 

Comments


Comment
Title:
Your name:
Your url:
Text:
Please enter the text from the image: