Solved

Row returned from Database to an Entity object

Posted on 2004-09-23
4
209 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 Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Chat Room 1 43
ConsoleSql 1 34
Office.Interop.Word Document - Detect Macros not working 16 37
What's the most efficient way to load up a couple of large table in C#? 5 37
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now