![](/img/trans.png)
[英]Getting an exception error when trying to run the default Program.cs (C#) in Visual Studio 2019
[英]Error 2019 when trying to build in C#
几年前有人写了一个程序,我必须修改它。 尝试使用.NET 4.5构建代码时,出现以下消息:
Error 2019: Member Mapping specified is not valid. The type
'Edm.DateTime[Nullable=False,DefaultValue=,Precision=]' of member
'SRVC_EVNT_END_TM' in type 'SimModel.STR_SRVC_EVNT' is not compatible with
'DB2.time[Nullable=False,DefaultValue=,Precision=0]' of member
'SRVC_EVNT_END_TM' in type 'SimModel.Store.STR_SRVC_EVNT'.
C:\Users\ponthcm\Documents\Visual Studio 2013\Applications\SIM.Entity\SimModel.edmx 5299 13 SIM.Entity
我与编写它的程序员交谈,设置项目时我们能想到的唯一区别是它使用的是Entity Framework 4,而我目前拥有Entity Framework 5。
除此之外,我看到的唯一其他可能的问题是由于大小差异,它试图将DateTime
放入Time
中。 任何见识将不胜感激。
问题在于,VS2010的IBM Dataserver Client外接程序的版本为10.5,代码是在版本9.5中编写的。 使用9.5卸载并安装插件后,错误消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.