LINQ to SQL - Partial class to selectively change shape?

I don't think that is possible. The point of LINQ to SQL is to provide a direct mapping between a return set schema and an object in .NET. Two different return set schemas, two different objects.

You can't truly think of the stored procedure as returning the same object if the signature of the return is different. It's more like "ObjectWithAdditionalInfo When you start to do these more complex, ambiguous mappings you need a real ORM tool like Microsoft Entities or .

I don't think that is possible. The point of LINQ to SQL is to provide a direct mapping between a return set schema and an object in .NET. Two different return set schemas, two different objects.

You can't truly think of the stored procedure as returning the same object if the signature of the return is different. It's more like "ObjectWithAdditionalInfo". When you start to do these more complex, ambiguous mappings you need a real ORM tool like Microsoft Entities or .

Well said, LINQ is not a crystal ball, it only knows about the current schema. – Chris Ballance Feb 6 '09 at 3:49 Thanks. While there are several ways to skin this cat, I'm exploring my options and learning LINQ at the same time.

@Chris -- I don't need it to be a crystal ball; just not throw an exception when a mapped column isn't there, or at least provide a different way to populate my partial properties. – JazzHands Feb 6 '09 at 5:33.

The point of LINQ to SQL is to provide a direct mapping between a return set schema and an object in .NET. Two different return set schemas, two different objects. You can't truly think of the stored procedure as returning the same object if the signature of the return is different.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions