Changing type, the state pattern and LINQ to SQL
- đź“…
- đź“ť 912 words
- đź•™ 5 minutes
- 📦 .NET
- 🏷️ C#, design patterns, LINQ
- đź’¬ 8 responses
A question I see from time-to-time on LINQ to SQL relates to changing an entity’s class.
C# and VB.NET don’t allow a class to change its type at run-time and LINQ to SQL specifically doesn’t provide a mechanism for changing the underlying discriminator for this reason.