Configuration data

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • serge calderara

    #1

    Configuration data

    Dear all,

    I have a windows application linked to a database.
    I was wondering about one point.

    Do I have to go for a configuration file anyway or can I
    store all my application in this database.

    I could use only the database but is it something good
    compare to configuration file?

    regards
    serge
  • Michael Giagnocavo [MVP]

    #2
    Re: Configuration data

    It depends on the needs of your application.

    You'll probably want a config file that points to the database to
    begin with. Per-user config values can be stored with
    IsolatedStorage , unless you want to share them across the network
    (like user A gets his preferences, no matter where he logs in). I
    think IsolatedStorage is local to the machine.

    Global application configuration settings could be stored in a
    database.

    You just need to sit down and think of the scenarios of how they'd be
    used, what if something is moved, etc.

    -mike
    MVP

    "serge calderara" <serge.calderar a@maillefer.net > wrote in message
    news:092001c36c 66$17f43450$a30 1280a@phx.gbl.. .[color=blue]
    > Dear all,
    >
    > I have a windows application linked to a database.
    > I was wondering about one point.
    >
    > Do I have to go for a configuration file anyway or can I
    > store all my application in this database.
    >
    > I could use only the database but is it something good
    > compare to configuration file?
    >
    > regards
    > serge[/color]


    Comment

    • serge.calderara

      #3
      Re: Configuration data

      I cannot really catch the use of this ISolateStorege
      classe.

      I seems there is two things to retrive configuration from.
      First in case your applcation require some setting to
      start like database path, Debug flag, ... Those then
      belongs to the configuration file named MyApp.exe.confi g
      and as far as I understand you need to edit that file
      manually with correct section or group of section.
      Any other parameter needed to tune my application
      behaviour seems to be store or added in this file.

      Then why using this isolateStorage for configuration file
      if we can easily do something with System.Configur ation
      nameSpace.

      Thnaks to clearup my mind on both
      regards
      serge

      [color=blue]
      >-----Original Message-----
      >It depends on the needs of your application.
      >
      >You'll probably want a config file that points to the[/color]
      database to[color=blue]
      >begin with. Per-user config values can be stored with
      >IsolatedStorag e, unless you want to share them across the[/color]
      network[color=blue]
      >(like user A gets his preferences, no matter where he[/color]
      logs in). I[color=blue]
      >think IsolatedStorage is local to the machine.
      >
      >Global application configuration settings could be stored[/color]
      in a[color=blue]
      >database.
      >
      >You just need to sit down and think of the scenarios of[/color]
      how they'd be[color=blue]
      >used, what if something is moved, etc.
      >
      >-mike
      >MVP
      >
      >"serge calderara" <serge.calderar a@maillefer.net > wrote[/color]
      in message[color=blue]
      >news:092001c36 c66$17f43450$a3 01280a@phx.gbl. ..[color=green]
      >> Dear all,
      >>
      >> I have a windows application linked to a database.
      >> I was wondering about one point.
      >>
      >> Do I have to go for a configuration file anyway or can I
      >> store all my application in this database.
      >>
      >> I could use only the database but is it something good
      >> compare to configuration file?
      >>
      >> regards
      >> serge[/color]
      >
      >
      >.
      >[/color]

      Comment

      Working...