Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 使用ObjectDataSource访问BLL时出错:找不到非泛型方法_Asp.net_Objectdatasource_Business Logic_Detailsview - Fatal编程技术网

Asp.net 使用ObjectDataSource访问BLL时出错:找不到非泛型方法

Asp.net 使用ObjectDataSource访问BLL时出错:找不到非泛型方法,asp.net,objectdatasource,business-logic,detailsview,Asp.net,Objectdatasource,Business Logic,Detailsview,我是一名初级C#程序员,我遇到了以下问题。 我在VisualStudio中创建了一个数据集,其中有一个表供使用两个表适配器的人员使用,一个用于选择所有人员,另一个用于一次选择一个由personID(Guid)过滤的人员。这是我解决方案的一个单独项目 之后,我为业务逻辑层创建了一个新项目 private PersonenTableAdapter personenAdapter = null; protected PersonenTableAdapter Adapter {get....} [Sy

我是一名初级C#程序员,我遇到了以下问题。 我在VisualStudio中创建了一个数据集,其中有一个表供使用两个表适配器的人员使用,一个用于选择所有人员,另一个用于一次选择一个由personID(Guid)过滤的人员。这是我解决方案的一个单独项目

之后,我为业务逻辑层创建了一个新项目

private PersonenTableAdapter personenAdapter = null;
protected PersonenTableAdapter Adapter
{get....}

[System.ComponentModel.DataObjectMethodAttribute    (System.ComponentModel.DataObjectMethodType.Select, true)]
public DAL.Testdatabase.PersonenDataTable GetPersonen()
{...}

[System.ComponentModel.DataObjectMethodAttribute (System.ComponentModel.DataObjectMethodType.Select, false)]
public DAL.Testdatabase.PersonenDataTable GetPersonenByID(Guid ID)
{...}

[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)]
public bool updatePersoon(string Voornaam, string Achternaam, string Geslacht, string Adres, string Huisnr, string Postcode, string Plaats, string Telnr, string GSM, string BSN, DateTime? CreateDate, string CreatedBy, DateTime? LastModifiedDate, string LastModifiedBy, bool? Actief, DateTime? DatumInactief, Guid ID)
{...}
当使用带有Objectdatasource的detailsview发布更新方法时,我得到以下错误

ObjectDataSource“ObjectDataSource1”找不到具有以下参数的非泛型方法“updatePersoon”:Voornaam、Achternaam、Geslacht、Adres、HUISR、邮政编码、Plaats、Telnr、GSM、BSN、CreateDate、CreatedBy、LastModifiedDate、LastModifiedBy、Actief、DatumInactief、original\u ID

有人能告诉我我做错了什么吗。也许这是一个不难的错误,但是原始身份证


请看最后一个参数。

我理解这个ID=原始ID,但是原始ID来自哪里?是的,谢谢您的帮助,将变量重命名为原始ID解决了问题。