DataContext db = new DataContext();
Select_Utilities SelectedUtility = (from su in db.Select_Utilities
where su.id == SelectUtilityId
&& su.Worksite_Id == WorksiteId
&& su.Utility_Company.id == UtilityCompanyId
select su).FirstOrDefault();
然后我想说 SelectedUtility.comment = "无论评论是什么";
但是出现错误:无法将类型“Select_Utility”隐式转换为“Select_Utilities”
声明中带有“FirstOrDefault”....有什么建议吗?
谢谢