-----------------------------------------------------------------------------------------
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币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功