-----------------------------------------------------------------------------------------
Entity Framework 5 Recommended for .NET Framework 4.5 Projects
-----------------------------------------------------------------------------------------
You have installed EF 4.3 in a project that targets .NET Framework 4.5.
There are some known issues using EF 4.x in a .NET 4.5 project.
We recommend installing a pre-release version of EF 5, which is designed to work with .NET 4.5
1) Open package manager console
Tools -> Library Package Manager -> Package Manager Console
2) Use the following command to install the latest pre-release package
Install-Package EntityFramework -IncludePreRelease
-----------------------------------------------------------------------------------------
Known Issues with Entity Framework 4.x and .NET Framework 4.5
-----------------------------------------------------------------------------------------
Entity Framework 4.1 thru 4.3 included additional data annotations in the
System.ComponentModel.DataAnnotations namespace in the EntityFramework assembly.
In .NET 4.5 these annotations were moved to be part of the .NET Framework in the
System.ComponentModel.DataAnnotations.Schema namespace of the
System.ComponentModel.DataAnnotations.dll assembly. If you are using EF 4.x and targeting
.NET 4.5 this results in two data annotations with the same name in different assemblies.
Because the annotations in the .NET Framework are in a different namespace we were not
able to use type forwarding to avoid this conflict.
It is possible to use EF 4.x on .NET 4.5 but we recommend using the latest pre-release
version of EF 5. If you are not using the affected data annotations there is no impact
on your code. If you are using the data annotations in a C# project you can use the extern
modifier to ensure your code uses the annotations from EntityFramework.dll
(http://msdn.microsoft.com/en-us/library/e59b22c5(v=VS.80).aspx). If you use the new
annotations from the System.ComponentModel.DataAnnotations.dll assembly in .NET 4.5
they will not be processed by Code First.
The affected annotations are:
- Column
- ComplexType
- DatabaseGenerated
- DatabaseGeneratedOption
- ForeignKey
- InverseProperty
- MaxLength
- MinLength
- NotMapped
- Table
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
ADO.NET Entity Framework CodeFirst 如何利用 EFProviderWrappers 输出日志(EF4.3) http://blog.csdn.net/fangxinggood/article/details/7665000
资源推荐
资源详情
资源评论
收起资源包目录
EFCodeFirstLogTractingTest.zip (50个子文件)
EFCodeFirstLogTractingTest
EFCodeFirstLogTractingTest.sln 920B
EFCodeFirstLogTractingTest
Models
TestDbEntities.cs 3KB
Memo.cs 430B
TestDbEntitiesInitializer.cs 622B
TestDB.mdf 2.25MB
bin
Release
Debug
packages.config 162B
Migrations
Configuration.cs 1KB
Program.cs 846B
obj
x86
Debug
DesignTimeResolveAssemblyReferencesInput.cache 7KB
ResolveAssemblyReference.cache 32KB
EFCodeFirstLogTractingTest.csproj.FileListAbsolute.txt 1KB
TempPE
EFCodeFirstLogTractingTest.exe 10KB
EFCodeFirstLogTractingTest.pdb 26KB
EFCodeFirstLogTractingTest.csproj.user 452B
EFCodeFirstLogTractingTest.csproj 6KB
App.config 2KB
TestDB_log.ldf 1024KB
Properties
AssemblyInfo.cs 1KB
EFCodeFirstLogTractingTest.suo 34KB
packages
repositories.config 145B
log4net.2.0.0
log4net.2.0.0.nupkg 2.59MB
lib
net40-client
log4net.xml 1.36MB
log4net.dll 281KB
net35-client
log4net.xml 1.36MB
log4net.dll 288KB
net10-full
log4net.xml 1.36MB
log4net.dll 288KB
net40-full
log4net.xml 1.37MB
log4net.dll 282KB
net35-full
log4net.xml 1.37MB
log4net.dll 292KB
net20-cf
log4net.xml 1.17MB
log4net.dll 240KB
net20-full
log4net.xml 1.37MB
log4net.dll 292KB
net11-full
log4net.xml 1.36MB
log4net.dll 288KB
EntityFramework.4.3.1
tools
EntityFramework.psm1 16KB
init.ps1 508B
EntityFramework.PowerShell.dll 52KB
migrate.exe 43KB
EntityFramework.psd1 5KB
EF4.3on.NET4.5Readme.txt 2KB
install.ps1 1KB
lib
net40
EntityFramework.xml 1.06MB
EntityFramework.dll 1.01MB
Content
App.config.transform 209B
Web.config.transform 209B
EntityFramework.4.3.1.nupkg 678KB
EFCodeFirstLogTractingTest.sln.docstates.suo 8KB
共 50 条
- 1
资源评论
- zhftyy2015-07-27可以用,很感谢
- u0115418442015-08-20挺不错的,可以借鉴
- agileboy2013-05-31mssql下没问题,oracle下没法用
- 风无声2013-11-01可以用,Oracle下也可以用的 非常感谢
机器人
- 粉丝: 2150
- 资源: 37
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 自考02197概率论与数理统计(二)试卷及答案解释2016-2021
- java毕设项目之游戏分享网站lw(完整前后端+说明文档+mysql).zip
- java毕设项目之ssm助学贷款+jsp(完整前后端+说明文档+mysql+lw).zip
- IBM Instana应用性能监视.pptx
- webview+H5来实现的android短视频(短剧)音视频播放依赖控件资源
- 黑马最新Hive存储压缩与优化课程总结
- 商城系统项目源代码全套技术资料.zip
- 番茄图像目标检测数据【已标注,约4,300张数据,YOLO 标注格式】
- 校园生活相关项目源代码全套技术资料.zip
- C语言上机实验_1.pptx
- 基于遗传算法求解TSP问题的研究 50个样本点
- 基于XGBoost的振动数据预警模型与参数优化技术-构建一个基于XGBoost的振动信息数据集预警模型 首先引入算法实现动态阈值设置,然后进行参数优化
- sublimeText 4
- 西红柿叶片缺陷分类数据集【已标注,约500张数据】
- 自考00023《高等数学(工本)》试题及答案及复习资料
- 智能点阵笔项目源代码全套技术资料.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功