MVC NotMapped无法正常工作 [英] MVC NotMapped not working

查看:111
本文介绍了MVC NotMapped无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在类的Metadatatype中的MVC4实体框架中使用NotMapped。

但是在索引页面中它显示错误

I am using NotMapped in MVC4 entity framework in Metadatatype of class.
But in index page it trhows an error

Quote:

MvcApplication1.tblPage类型的关联元数据类型包含以下未知属性或字段:templateid2。请确保这些成员的名称与主要类型的属性名称相匹配。

The associated metadata type for type 'MvcApplication1.tblPage' contains the following unknown properties or fields: templateid2. Please make sure that the names of these members match the names of the properties on the main type.



因此,请解释NotMapped的实际使用,并帮助我解决此问题。< br $> b $ b

谢谢


So, please explain actual use of NotMapped and also help me to resolve this issue.

Thanks

推荐答案

未映射的技巧 [ ^ ]



查看以上链接可能有助于您了解未映射的内容MVC中的财产

谢谢

:)
Notmapped tricks[^]

Check the above link may this help you understand regarding the Not Mapped property in MVC
Thanks
:)


这篇关于MVC NotMapped无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆