Feature Request for LINQ designer

Could I make a small request, or perhaps this has already been done and I'm just not aware of it...

When dragging tables into the LINQ Designer I get nice classes that I can customize. But what I would really love is if 2 classes were generated: a base class consisted only of the table's member properties, and an subclass that utilizes all of the LINQ data access features.

This way I can decouple the LINQ specific data access code from my business objects and allow me to do other things with them (such as Serialize them!)

Can this be done Thank you..




Answer this question

Feature Request for LINQ designer

  • ksona

    Would you not be better off just adding your own code in a partial class --- much the same way as all the other designers work.

    Cheers
    Ralph Shillington


  • D J Mitchell

    The entity classes generated for LINQ to SQL do not contain any data access logic in them, only some attributes on the properties if you chose to use attribute based mapping. The only data-access object that is generated is the DataContext.

  • Feature Request for LINQ designer