-
June 12th, 2012, 09:34 AM
#1
DataRow mapping
I wanted to know if there is a way to map data returned by data row to user defined class. Some thing which pretty common in java spring or strut framework,
example Datarow { tableID, time, name , address, city } mapped to
Code:
class A
{
public int tableID
public string time;
public string name;
public string address;
public string city;
// getter and setter exposed by public property
}
so for multiple rows returned by SQL query could be mapped to a List of class A
List<A> mylist;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|