我们正在使用实体框架
private t_Market getMarketByCellsiteID(Guid cellsiteID)
{
try
{
t_Market market = null;
using (LiveLeaseEntities Entities = new LiveLeaseEntities())
{
market = (from m in Entities.t_Market
where m.OperatorId = (from o in Entities.t_CellSite
where o.CellSiteId == Guid.Parse("53B7B160-20C4-4B60-948A-06570E6E3CBA")
select o.OperatorId)
select m).Single();
return market;
}
}
我越来越无法将类型“System.Linq.IQueryable”隐式转换为“System.Guid”