Results 1 to 4 of 4

Thread: Data logic in Front End .NET app or Database?

  1. #1

    Thread Starter
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681

    Data logic in Front End .NET app or Database?

    Whats the consensus on logic, or even formatting of data for an application. I am not talking about actual business rules, but the data itself. Should this be done in the app or should the app expect data that is ready to use?

    This may not be a big deal, but I would like to get everyone here using a consistent way of doing it - and wanted some of your thoughts.

    Thanks.

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    i think formatting should be done by the front end.
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    I agree, the more generic you leave your data access calls and your business logic, the more you can re-use them later. If you only return a dataset with the proper data that should be passed, then in your presentation layer format it to look like you want it. Now, if you ever need to reuse that business logic, you can expect a dataset it come back to your UI. That UI can then format it a different way than the first app, but still have the exact same result set to work with.

  4. #4
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Also, you can create a seperate property(s) in the business tier, for example, FormatedBalance(), which will return you a formated version of the balance amount. However, I tend to keep all of my data formating done in the presentation tier, keeping the business layer as thin as possible.

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