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 7162943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:49:05+00:00 2026-05-28T13:49:05+00:00

I need to path information from BL layer to the presentation layer via WCF

  • 0

I need to path information from BL layer to the presentation layer via WCF services .

I thought to do it via DataSets but I saw that people tell that it’s a bad practice and it’s recommended to use dataclasses.

Can someone explain the difference and the advantages .

Thanks for help.

  • 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-05-28T13:49:05+00:00Added an answer on May 28, 2026 at 1:49 pm

    DataSet is an old-school, outdated like-an-OR/M solution which worked fine for a long time in drag&drop developments.

    Once you want to expose some logic over a service using WCF or any other framework, you need to take in account that these should transport no useless data and just what client needs to consume, and a client could be an user interface or just another service or backend engine.

    In services like WCF the best approach is DTO (data-transfer objects, also known as value objects), which are a light-weight versions of business objects, absolutely unlinked from any layer (it doesn’t depend on business, UI, data…) which can be easly serialized into XML or JSON and deserialized in any platform, not only in strongly-typed environments, but also interpreted, dinamically-typed ones, like JavaScript, PHP, Python or Ruby (or many others).

    Think about DTO as a class which has the exact number of properties that some consumer needs to work with your service layer.

    Practical example: You’ve a Person class having a Name, SecondName and Age. In your user interface, you need to query some service for a list of Person and there you need to show SecondName only. In this case, you’re going to design a class having a single property SecondName and you’ll avoid giving a full Person to the user interface through your service layer, because it’s cheaper and, obviously, optimal.

    If this service layer returns PersonDto objects, a JSON-serialized list of 3 persons would be [{ "SecondName": "Blah" }, { "SecondName": "Bleh" }, { "SecondName": "Blih" }]. I don’t think a DataSet would be that lighty serialization.

    Check these articles about DTO:

    • http://en.wikipedia.org/wiki/Data_transfer_object
    • http://msdn.microsoft.com/en-us/library/ff649585.aspx
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a script that can gather folders/files information from large drives (600GB to
The following code works, but I'm curious as to why I need the Path
I need an example of the shortest path of a directed cyclic graph from
I have a form that allows a user to update their profile information, but
I have created a DLL that will gather information from the AssemblyInfo.cs. In the
When using PowerShell to extract information from TFS, I find that I can get
I'm developing a flash application that is getting information from a remote server using
I need to have image file path from the user and store the image
I need to create a server-side app that saving information to a mongoDB ,
I want to scan FAT32 disk (I just need file path and file name)

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.