I think you want something like this
var query = new { a = (context.MyTable.Where(t => t.TypeID == 1).Count(), b = (context.MyTable.Where(t => t.TypeID == 2).Count(), c = (context.MyTable.Where(t => t.TypeID == 3).Count(), }
Change If you want all this in one query, you can do this:
var query = from x in context.MyTable group x by 1 into xg select new { a = xg.Where(t => t.TypeID == 1).Count(), b = xg.Where(t => t.TypeID == 2).Count(), c = xg.Where(t => t.TypeID == 3).Count(), };
source share