есть ли возможность сопоставить это одному объекту?
select x,y,z, (select count(*) from othertable where tableid=table.id) as othertablecount
from table t
Я хочу сопоставить это с классом, который выглядит следующим образом:
public class Stuff
{
public string x { get; set; }
public string y { get; set; }
public string z { get; set; }
public int count { get; set; }
}