Results 1 to 3 of 3

Thread: Lists or Datases?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Lists or Datases?

    Which would be more efficient to use, Lists<list> or Datasets?

    Thanks,
    Blake

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Lists or Datases?

    That would depend on the circumstances. They both exist because they both have their uses. If you're talking about getting data from a database and then using it in an application then you might even use both. You could use ADO.NET to populate DataTables, whether in a DataSet or not, and then transfer the data to collections of your own entity types. That's exactly what ORMs do, e.g. Entity Framework. They use ADO.NET under the hood and expose the data to you as strongly-typed entities.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,879

    Re: Lists or Datases?

    i would really suggest Lists<list> is more efficient . rather than always filling to dataset using dataadapter . but i am not sure what exactly you want .

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