3

我必须从旧数据库(在 oracle 中)将大量数据导入 SQL Server 数据库。此导入将在每晚完成,并且可以从 .net 应用程序(asp 或重客户端)启动

我正在使用 devart 连接器连接到数据库。

我完成了数据库连接的配置并开始创建一个仅包含我感兴趣的数据的 edmx。

我遇到了一个奇怪的事情:似乎外键是一个Number(10)(翻译成int64),而引用的主键是一个Number(8)(翻译成int32)。

我只是不知道为什么要这样做,而且我永远无法梦想改变这一点(:()。

问题是我的模型中有错误:

Error 112: The types of all properties in the Dependent Role of a referential 
constraint must be the same as the corresponding property types in the Principal 
Role. The type of property 'GSM_ID' on entity 'My.NameSpace.Store.GG_IRTSPEZ' does
not match the type of property 'ID' on entity 'My.NameSpace.Store.GG_STAMM' in the 
referential constraint 'ORACLE_GIRT_GSM_FK'.    

您对如何解决此问题有任何想法吗?

4

0 回答 0