Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Genral architecture question.

Genral architecture question.

Scheduled Pinned Locked Moved Design and Architecture
architecturehelpquestion
3 Posts 3 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    joysnlove
    wrote on last edited by
    #1

    I have a module that accepts a datatable as a parameter. It performs some operations on that datatable to return some useful information. The problem is that my datatable provided to this module as parameter has to be in a specific format. i.e for start it needs to have 3 columns for it to be usable by my module. So what and where and how will be the best way to specify the format required. so that any module , service, application or layer is only able to provide the datatable in correct format to this module. hope i made my self clear. thanks a lot regards joysnlove

    M P 2 Replies Last reply
    0
    • J joysnlove

      I have a module that accepts a datatable as a parameter. It performs some operations on that datatable to return some useful information. The problem is that my datatable provided to this module as parameter has to be in a specific format. i.e for start it needs to have 3 columns for it to be usable by my module. So what and where and how will be the best way to specify the format required. so that any module , service, application or layer is only able to provide the datatable in correct format to this module. hope i made my self clear. thanks a lot regards joysnlove

      M Offline
      M Offline
      mark_w_
      wrote on last edited by
      #2

      Could you use a class structure instead of a datatable? That way you could specify what type you needed passing in. eg class Foo { int col1; int col2; string col3; //rest of class (properties etc) } public bool myfunc(List<foo>,......)

      modified on Wednesday, March 5, 2008 7:04 AM

      1 Reply Last reply
      0
      • J joysnlove

        I have a module that accepts a datatable as a parameter. It performs some operations on that datatable to return some useful information. The problem is that my datatable provided to this module as parameter has to be in a specific format. i.e for start it needs to have 3 columns for it to be usable by my module. So what and where and how will be the best way to specify the format required. so that any module , service, application or layer is only able to provide the datatable in correct format to this module. hope i made my self clear. thanks a lot regards joysnlove

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        joysnlove wrote:

        So what and where and how will be the best way to specify the format required. so that any module , service

        The key thing here is service. If you look at exposing your method so that it can be used in an SOA scenario then you shouldn't use a DataTable or a DataSet. These are cumbersome objects that aren't natively recognised by other technologies (such as Java). You've already found typing issues with the dataset, so now you need to consider whether or not this really is the way forward.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups