当我在我的解决方案中运行* .svc文件以使用Visual Studio 2010中的WCF Test Client测试Web Service时我得到以下错误:MySQL - Schema无效&未为.....(等)实例指定映射
Schema specified is not valid. Errors:
emp.msl(3,4) : error 2062: No mapping specified for instances of the EntitySet and AssociationSet in the EntityContainer empEntities.
如果我正好在模型浏览器上emp.edmx点击>生成模型数据库...>单击Finish。然后点击* .svc文件,然后单击运行出现错误:
Object reference not set to an instance of an object.
我可以做回圈的第一个错误如下:
- 右键单击emp.edmx在模型浏览器>从数据库更新模型...
- 刷新表,视图和存储过程
- 右键单击Solution Explorer中的双向* .TT文件>单击运行自定义工具两个文件
- [R在解决方案资源管理器中单击* .edmx文件>单击运行自定义工具
- 左键单击* .svc文件,然后运行,调用任何内容,然后出现原始错误。
此外,数据库已编辑,我试图调整应用程序的架构与数据库的架构,或多或少。该应用程序正在编辑数据库之前工作。
该应用程序使用linq & MySQL来查询数据库,然后在SharePoint上呈现表以供人们查看而不是编辑。
我已审查以下职位,并已得到了无处:
- Why am I getting this error: No mapping specified for the following EntitySet/AssociationSet - Entity1?
- How do I correctly set an association between two objects in the Entity Framework 4 Entitydesigner?