var sql = "select value count(0) from Inventory where type='sale'"; int count = context.CreateQuery<int>(sql).First();
就报错,说无法解析type,如何解决?
select [value], count(0) from Inventory where [type]='sale'