Results 1 to 2 of 2

Thread: com plus technology is very powerful BUT

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    TURKEY
    Posts
    37
    I am trying to develop a project fully depends on COM technology

    But I am facing a important problem. (maybe same to me as important.Let me explain )

    Think of you have a customer table and customer object...

    In traditional development method You are adding a ADODC object and in your bind your item to it.
    Then you can use recorset update,recordset insert event

    In com development you need to write all default database (traditional)event...
    for example customer.insert,customer.update,customer.delete
    customer.research

    if you have 20 table in tour project. And you want to write all project in COM architecture you need (have) to write at last 20*4=80 method.

    is there any way

    thank you...

  2. #2
    Guest

    Reusability.

    Anizam, I hope I read this right. You have 4 basic db functions you want to perform on 20 different tables.

    I would in this case write four procedures, ie insert, delete, update and research(??) and pass in as a parameter the table I intend to perform the action on and of course the data.

    The buzzword for this technique is polymorphism

    If you need more explanation drop me an email.

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