Click here to Skip to main content
15,895,740 members
Articles / Programming Languages / C#

Object Relational Mapping via Reflection

Rate me:
Please Sign up or sign in to vote.
4.50/5 (4 votes)
14 Jun 2011CPOL 24.6K   7  
Illustrates how to quickly and dynamically populate an object from a data-row

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
15 Jul 2011Kelqualyn
Same thing 10-100 times faster.Additionally, IndexMap can be built only once per DataTable.using System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Linq.Expressions;using System.Reflection;namespace ReflectiveReader{ public static...

License

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


Written By
Software Developer (Senior) Decipha
Australia Australia
Wrote his first computer game in Microsoft Basic, on a Dragon 32 at age 7. It wasn't very good.
Has been working as a consultant and developer for the last 15 years,
Discovered C# shortly after it was created, and hasn't looked back.
Feels weird talking about himself in the third person.

Comments and Discussions