There is a class:
public MyClassA
{
public int Total{get;set;}
public int DeviceNo{get;set;}
}
the sql is select count(1) Total,DeviceNo from tmp group by DeviceNo
but the MyClassA is no in the DbSet
there is no a DbSet<MyClassA> in the dbcontext.
how to use entityframeworkcore to get the List<MyClassA>()?