|
-
Apr 8th, 2008, 09:36 AM
#1
Thread Starter
Fanatic Member
[2005]ObjectDatasource and BLL model: how to generate BLL basic methods automatically
Hi guys,
u know those: insert, Update, delete methods in the BLL layer. WE always have to add them manually, but many times, they reflect pretty much the insert, update, select methods from trhe typed Dataset that we design in the dataset deaigner
So my question pls:
Instead of typing for example:
<System.ComponentModel.DataObjectMethodAttribute _
(System.ComponentModel.DataObjectMethodType.Update, False)> _
Public Function Update_CarnetAddress(ByVal id As Integer, ByVal Entreprise As String, ByVal Contact As String, ByVal Telephone As String, ByVal Email As String, ByVal Fax As String, ByVal Note As String, ByVal ModifierPar As String) As Boolean
_.........
Dim rowsAffected = Adapter.Update(...all params go here)
Return rowsAffected = 1
End Function
Is there a way to generate that code or at least part of it?
__________________
Thanks a lot for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|