ObjectDataSource with generic methods

Joined
May 15, 2008
Messages
1
Reaction score
0
Hi,
I'm trying to create a datasource middlelayer that binds a grid to our framework. The problem I am facing is that the datasource simply denies taking methods that take other parameters then the one specified in the test project's DataObjectTypeName. This is a problem since we have thousands of tables and really don't want to create a insert method for each entity class.
The errormsg: "ObjectDataSource 'afObject' could not find a non-generic method 'afGridInsertRecord' that takes parameters of type 'GridDO'."

<asp:ObjectDataSource ID="afObject" runat="server"
TypeName="Appframe3.Web.Controls.DataObject.afDataObject" DataObjectTypeName="GridDO"
DeleteMethod="afGridDeleteRecord" InsertMethod="afGridInsertRecord"
OldValuesParameterFormatString="{0}"
SelectMethod="afGridSelectRecords" UpdateMethod="afGridUpdateRecord">
<DeleteParameters>
<asp:parameter Name="pObj" Type="Object" />
</DeleteParameters>
<UpdateParameters>
<asp:parameter Name="pObj" Type="Object" />
</UpdateParameters>
<InsertParameters>
<asp:parameter Name="pObj" Type="Object" />
</InsertParameters>
</asp:ObjectDataSource>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top