![](/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.