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
arameter Name="pObj" Type="Object" />
</DeleteParameters>
<UpdateParameters>
<asp
arameter Name="pObj" Type="Object" />
</UpdateParameters>
<InsertParameters>
<asp
arameter Name="pObj" Type="Object" />
</InsertParameters>
</asp:ObjectDataSource>
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
</DeleteParameters>
<UpdateParameters>
<asp
</UpdateParameters>
<InsertParameters>
<asp
</InsertParameters>
</asp:ObjectDataSource>