在数据源上找不到DataMember属性'FK_Phone_Customer'. [英] DataMember property 'FK_Phone_Customer' cannot be found on the DataSource.

查看:570
本文介绍了在数据源上找不到DataMember属性'FK_Phone_Customer'.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题不在于应用程序,而是Visual Studio.
问题是,当我在Visual Studio中打开Form.cs [Design]窗口时;出现上述错误,而不是显示表单的设计模式.

让我解释一下这是什么项目:
为了封装代码,我有一个名为"CRUD"的WindowsForm,其他Forms继承了此Form.

"CRUD"具有以下控件:
1.数据集
2. TableAdapterManager
3. MasterBindingSource

继承自"CRUD"的"CustomerUI"具有以下控件:
1. CustomerTableAdapter
2. PhoneTableAdapter
3. DetailBindingSource
再加上两个DataGridView.

(注意:DetailBindingSource的DataSource属性为MasterBindingSource,而DataMember为"FK_Phone_Customer".)
有了这些东西,我就正确地制作了一个主从表单.但是我没有意识到
错误.
我再说一遍;应用程序正常运行.
我该怎么办才能消失该错误?

My problem is not with the application, it is Visual Studio.
The problem is that when I open a Form.cs[Design] window in Visual Studio; the above error appears instead of showing design mode of a Form.

Let me explain what project it is:
In order to encapsulating codes I have a WindowsForm named "CRUD" which other Forms inherit form.

"CRUD" has these controls:
1. DataSet
2. TableAdapterManager
3. MasterBindingSource

"CustomerUI" which inherits from "CRUD" has these controls:
1. CustomerTableAdapter
2. PhoneTableAdapter
3. DetailBindingSource
Plus two DataGridView.

(Note: The DataSource property of DetailBindingSource is MasterBindingSource & the DataMember is ''FK_Phone_Customer''.)
With these stuffs I have made a master-Detail form correctly; But I do not realize
the error.
I say it again; Application is working with no error.
What should I do to disappearing the error?

推荐答案

问题绝对不是Visual Studio的问题.它与form.designer.cs中的数据控件一起使用.您需要仔细研究它.
The problem is definitely NOT with visual studio. It''s with the data controls inside your form.designer.cs. You need to carefully dig into it.


这篇关于在数据源上找不到DataMember属性'FK_Phone_Customer'.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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