Project DescriptionDatabaseMapper is a data mapper which makes it easier to map database queries to your business entities. DatabaseMapper uses no datacontext or session and is therefor optimal for serviced components.
Based on a XML mapping, DatabaseMapper generates dynamicly (using CodeDom) adapters to create and assign table columns to object properties. Because I use a adapter you can use any(*) class or structure with DatabaseMapper. As generating optimized queries is a hard thing to do, you supply the queries with the mapping so some basic knowledge about SQL queries is needed.
*) The class or structure must have a public constructor and properties or fields must be public writeable.
DatabaseMapper also supports associative relations like one-to-one, one-to-many, many-to-many and many-to-one collections. Unlike other mappers, DatabaseMapper loads the relations as they are requested. This is a behavior which (at this moment) cannot be turned off.
Please note that DatabaseMapper is dual licensed. It's licensed under both the Apache 2.0 and the MS-PL license which basicly means you can do whatever you want with the code, except from removing the copyright notices.
Internal workings of DatabaseMapperLinq and DatabaseMapperSample databasesWhy another o/r mapper?