Results 1 to 4 of 4

Thread: Advise on this architecture...

  1. #1

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205

    Advise on this architecture...

    I'm making an exam db. I want a .dll/.exe component to do all DB work, and expose properties such as QuestionText, AnswerText, etc.

    Is this an appropriate design:

    VB Code:
    1. clsDBAccess
    2. -->LoadNewQuestion
    3. -->GetQuestionText
    4.  
    5. clsQuestion
    6. -->Propert QuestionText

    The clsDBAccess does all the actual DB work, and is the only way to access this .dll's properties and methods. But, to break it up a little internally, I was gonna make separate internal classes to hold the properties for the Question, perhaps another for the Answers, I'll see how I go.

    The question is - should I bother breaking it up internally? It would add an extra layer of function calls to retrieve properties, but I thought it may help in the design if it was broken up like this.
    Although, it's not that complicated anyway, and probably wouldn't matter toooo much if I just had one class to do what I need.


    Thoughts?

    -RJ
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    Use XML

    It is a standard and can be easily output. Esp. if you plan on outputting SQL server, since XML is a native output type for SQL Server (2000 at least). It only requires you name the top level document node.

    If you are unfamiliar with XML, create a trial database at www.quickbase.com and then make a view and select XML FLAT and do not enter a stylesheet.

    When you run the view, you will see how XML should look.

    I have a login/logout system programmed completely in an active X dll for the backend and as an additional bonus, the front end can access the architecture through the SEVERXMLHTTP object and it is FAST.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    As to the architecture question I think 2 objects is overally complex for so little number of properties and I would leave them as 1 object.

  4. #4

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    I think I shall.
    Cheers,
    RJ
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

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