Apr 08, 2008 11:43 AM|JayPH|LINK
Unfortunately none of the above is working for me.
Firstly I'm not sure that the lingo I'm using is right but I'll try
I have a FormView contol that has an ObjectDataSource. This is plugged into my BLL that accesses the DAL. The DAL is configured to use existing Stored Procedures.
When I try to do a delete I get this error message:
ObjectDataSource 'ObjectDataSourceModules' could not find a non-generic method 'ModuleDelete' that takes parameters of type "myBusinessLogicLayer.Module'.
This is the code in the BLL:
If I the delete that property I get a new error:
ObjectDataSource 'ObjectDataSourceModules' could not find a non-generic method 'ModuleDelete' that has parameters: moduleCode, Code.
I'm only passing one parameter as declared in the ObjectDataSource:
My stored procedure has a primary key that is not auto incremented but it's set to read only false in the edit template
SOrry for the essay but I'm on day 3 with this now.
I really like the idea of separating the DAL from the presentation layer but I could write my own Data Access code with much less fuss.
If anyone can help I would be very grateful
ObjectDataSource DAL "Data Access"