Click here to Skip to main content
15,174,613 members
Articles / Web Development / ASP.NET

Stats

19.6K views
2 bookmarked

Convert Datatable to Collection using Generic

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
13 Aug 2011CPOL
Very nice!I've modified ToCollection(this DataTable dt) extension function, so if DataTable column names and class property names are different, then you can use this alternative:public static List ToCollection(this DataTable table, Dictionary dic){ List lst = new...

Views

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Vano Maisuradze
Architect
Georgia Georgia
No Biography provided

Comments and Discussions