Results 1 to 11 of 11

Thread: [RESOLVED] [2005] ObjectDatasource and BLL model: how to generate BLL basic methods automaticall

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    589

    Resolved [RESOLVED] [2005] ObjectDatasource and BLL model: how to generate BLL basic methods automaticall

    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?
    Last edited by tutus; Apr 8th, 2008 at 09:35 AM. Reason: reviewed
    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
  •  



Click Here to Expand Forum to Full Width