LinqToSql and abstract base classes

前端 未结 4 475
[愿得一人]
[愿得一人] 2021-01-18 11:59

I have some linq entities that inherit something like this:

public abstract class EntityBase { public int Identifier { get; } }

public interface IDeviceEnti         


        
4条回答
  •  [愿得一人]
    2021-01-18 12:30

    Try .OfType<>() as posted here https://stackoverflow.com/a/17734469/3936440, it works for me having the exact same issue.

提交回复
热议问题