Search code examples
linq-to-sqldomain-driven-designexpression-treesprojectionobject-initializers

How can i get linq to sql to map my type when i use a parameterized constructor?


I know that L2S is not designed to map custom/POCO types to L2S-entity types without the object initializer syntax. But is there a back-book way to achieve this so that i can project into my POCO with a parameterized constructor and not get stung when i try to apply an expression to that result?


Solution

  • You can't.

    And if there is a "back-book way" I haven't found it (and I suspect I don't want to).