Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Datasets without a database??

  • 16-03-2004 06:55PM
    #1
    Closed Accounts Posts: 88 ✭✭


    Is there a way that you could create a dataset in C# and fill it with data that comes from a class & not from a database.
    Basically i have a number of variables that hold decimal values which are calculated in a controller class and are then set in an entity class using accessors. I want to create a method in the controller class so that all these decimal values can be called from the entity class and returned to the UI class for display.

    I was thinking that using datasets might be used to solve this or maybe im just cracking up. Im not a very experienced programmer!


Comments

  • Registered Users, Registered Users 2 Posts: 640 ✭✭✭Kernel32


    You can very easily. First create a typed dataset, a typed dataset has a schema which is driven from an xsd file. Then you can create an instance of that typed dataset and populate either through code, from a database or from an xml file. The VS.Net has a very nice typed dataset builder, I would start by looking at that and reading the help file.


  • Closed Accounts Posts: 88 ✭✭powerage22


    thanks!


Advertisement