现在更新为EF5,NotMapped注释不起作用 [英] Updated to EF5 now NotMapped annotation doesn't work

查看:83
本文介绍了现在更新为EF5,NotMapped注释不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将entityframework更新为最新的5.0.0版本。而且 NotMapped 注释现在不起作用。我试图用Google搜索解决方案,但找不到。当您更新entityframework并知道解决此问题的解决方案时,有人遇到过同样的问题吗?

I just updated the entityframework to the latest 5.0.0 version. And the NotMapped annotation doesn't work now. I tried to google for an answer to fix it but couldn't find. Anyone had the same problem when you updated the entityframework and know a solution to fix this problem?

推荐答案

EF 5.0中的注释属性带有.NET 4.5移至System.ComponentModel.DataAnnotations程序集和 System.ComponentModel.DataAnnotations.Schema 命名空间。

Annotation attributes in EF 5.0 with .NET 4.5 were moved to System.ComponentModel.DataAnnotations assembly and System.ComponentModel.DataAnnotations.Schema namespace.

这篇关于现在更新为EF5,NotMapped注释不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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