我的应用程序主要使用server1上的db1。但是,有一个表我只会在server2上的db2中读取。我们没有为db2创建一个新的DbContext,而是创建了一个链接服务器,并在db1中为此表设置了一个同义词。我在我的db1 Code First上下文中为此设置了映射。我会得到以下错误:
A failure occurred while giving parameter information to OLE DB provider &
MyEntities()) var newGroup = new Groups GroupDate = DateTime.Nowtransaction.Complete();GroupId和GroupDate是PK,GroupId是身份(步骤= 1),GroupDate不是
存储update、insert或delete语句影响到意外的</