Cannot loop through list A(icollection) of generic type B where A and B both implement same interface
问题 The intro is a bit tedious, but is just for clearity! Some might even learn something from it or get some handy insights. My question is found at the bottom. I really hope someone can help me! I have this interface public interface IEFEntity { object GetPKValue(); bool PKHasNoValue(); } All my automatic genereted EF classes implement this interface and implement the 2 methods. This is done via a separate file using partial classes so the implementation is not gone when regenerating the EF