Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8813805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:57:06+00:00 2026-06-14T03:57:06+00:00

Normally, when working with data from a database with a forms application, I keep

  • 0

Normally, when working with data from a database with a forms application, I keep it in a dataset or datatable and pull data out as needed. Now, I am working with WPF and trying to conform more to the MVVM pattern. Converting these datatables to objects make it a little easier to use with MVVM.

For example, if I had a table filled by a query like so –
Select p.first_name, p.last_name, p.phone,p.email from person as p where p.first_name = ‘Bob’
Instead of keeping the datatable, I would just now convert that into a person object.

From a performance standpoint, is there and downfall to making objects or should I stick with datasets and datatables?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:57:07+00:00Added an answer on June 14, 2026 at 3:57 am

    The performance impact of using an ORM such as EF (or rolling your own) instead of DataTable/DataSet is negligible in applications like you’re describing, but it depends on how it’s implemented.

    The main advantage of using an ORM is ensuring type-safety and not having to perform type-casting when retrieving data from a DataTable object. There are also benefits from using lazy-loading in Linq.

    I don’t think that using entity objects everywhere is necessarily a solution. There’s nothing really wrong with using a DataTable object in a ViewModel (although I’m unsure how you’d use it with respect to the data synchronisation features of the DataTable class, but you’re free to not use it at all).

    In a new project, I’d use EF, only because I like having the typing taken care of for me, but if you’ve got an older project using tables that works fine, I’d stick with it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Yesterday the application was working normally, and i didn't edit my codes. But now
I am trying to get a Java desktop application to pull some data from
I've been working normally in Debug scheme, now I changed to Release and Im
OK, so my websites been working normally up until now, I'm not really sure
I just started using virtualenv, and it was working normally until yesterday. Now, and
I am reading data from a scale using a serial port. Communication is working
I have been working on a project which is about data copy from one
I'm working on getting calendar data from google using OmniAuth and the google-oauth-2 strategy.
I'm working on an application that gets content from feeds in C#. This content
I'm working on an Android application that will come with lots of data. I'd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.