I have a question regarding a problem with L2S, Autogenerated DataContext and the use of Partial Classes. I have abstracted my datacontext and for every table I use, I\'m im
Return types aren't covariant in C#. As you can't change the auto-generated code the only solution I see is to change the interface:
public interface Interface { T Instance { get; } }
And change your partial class accordingly:
public partial class Class : Interface { }