“/”应用程序中的服务器错误。

编译错误

说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。

编译器错误消息: CS1061: 'HFHouseDetailLiveModel' does not contain a definition for 'Status' and no extension method 'Status' accepting a first argument of type 'HFHouseDetailLiveModel' could be found (are you missing a using directive or an assembly reference?)

源错误:


行 22:     //ViewBag.IsFloatMenu = 0;//不显示右边右边浮动菜单
行 23:     var hasImg = !string.IsNullOrWhiteSpace(Model.HouseInfo.NewHouse03) || Model.HouseInfo.ImgList?.Count > 0;
行 24:     var hasLiving = Model.LiveList?.Any(t => t.Status == 1) ?? false;
行 25:     var inLivingList = hasLiving ? Model.LiveList.Where(t => t.Status == 1).ToList() : new List<Zp.Model.DTO.HFHouseDetailLiveModel>();
行 26:     var notInLiving = Model.LiveList?.Where(t => t.Status != 1)?.ToList();

源文件: F:\web.root\zp365\zp365Subject\Areas\goufangjie\Views\House\Detail.cshtml    行: 24






版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4110.0