Solved

Row returned from Database to an Entity object

Posted on 2004-09-23
4
210 Views
Last Modified: 2010-04-15
Hi All,
 In my application, i am reading a set of columns from the database. The row returned has to be converted to an C# object. I could have created a class with attributes and set the attributes when data is read. However, the columns i read vary based on a configuration file. Is there a way to convert the data returned from the Database into an object.
Thanks,
Preetham.
0
Comment
Question by:kingpreetham
4 Comments
 
LVL 10

Accepted Solution

by:
eternal_21 earned 50 total points
ID: 12135511
Not very easily.... And it won't be strongly-typed, so I can't see the advantage.  Why don't you just work with the System.Data.DataRow object?
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C# Offline Apllication 5 72
Web Form VB.Net  import CSV 4 39
Where can I ask about my ASP.NET MVC project? 6 38
MailAddress in vb 4 17
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question