Is there any simple way to access the
DataContext in a linq2sql entity class.
I'm trying to create something like
EntitySet but I cannot figure out how the
EntitySet has access to the context that created the entity object in the first place.
I want to have a regular linq2sql entity class with a way for the class to access the
DataContext that created it. I know it's possible because when you have an entity class with a primary key linq2sql gives you the option to load all children without creating a new