I like to cleanly separate public and domain objects (so, nHibernate isn\'t going to help here) from each other which ends up forcing me to write a lot of code to m
There is also an interesting project called Otis. Below is the example *.otis.xml mapping taken from the documentation page:
To read the mapping files from the assembly:
// configure the new Configuration object using metadata of types in the current assembly
Configuration cfg = new Configuration(); // instantiate a new Configuration, one per application is needed
cfg.AddAssembly(Assembly.GetExecutingAssembly()); // initialize it
Hmm, where have I seen it before? ;)