错误:架构无效。该关系未加载到该类型上。 [英] Error : Schema is not valid. The relationship was not loaded on the type.

查看:55
本文介绍了错误:架构无效。该关系未加载到该类型上。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用数据库第一种方法。当我更改数据库中的列名和edmx文件中的从数据库更新模型时。

我在构建应用程序时遇到错误



'

I have using Database first approach. when i change the column name in database and 'update model from database' in the edmx file.
I got the error while build the application as

'

Schema specified is not valid. Errors:
The relationship 'projectname.FK_jobitem_employee' was not loaded because the type 'projectname.job_item' is not available.
The following information may be useful in resolving the previous error:
The required property 'job_trans_num' does not exist on the type 'projectname.job_item'.



'

如果有人有想法请回复..


'
If anyone have idea please reply..

推荐答案

请按照以下说明操作:如何:更新数据库更改时的.edmx文件(实体数据模型工具) [ ^ ]
Please, follow this instruction: How to: Update an .edmx File when the Database Changes (Entity Data Model Tools)[^]


这篇关于错误:架构无效。该关系未加载到该类型上。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆