System.Data.Entity.Core.Objects.ObjectResult不包含以下定义

时间:2018-06-21 13:16:34

标签: asp.net-mvc

错误='System.Data.Entity.Core.Objects.ObjectResult'不包含'bannerMaster11'的定义 有什么错误可以有人帮忙吗?我是mvc的初学者。

@foreach (bannerMaster bannerMaster11 in Model.bannerMaster11)
                        {
                            <div data-dot="<p>1 </p>" class="carousel-slot">

                                <img class="caro1 caro_img owl-lazy" data-src="~/images/@bannerMaster11.path" />
                            </div>
                            <div class="carousel_text">
                                <span>
                                    @bannerMaster11.smallText
                                </span>
                                <h1>
                                    @bannerMaster11.captionText
                                </h1>
                                @if (bannerMaster11.isButtonVisible.ToString().ToUpper().Trim() == "Y")
                                {
                                    <a href="@bannerMaster11.buttonURL" class="know_btn">
                                        Know More
                                    </a>
                                }

                            </div>

                        }

0 个答案:

没有答案