I read nhibernate for beginners 3.0 and read about common mistakes (I made some of them)
I am wondering what strategies you want to make one or more readonly entries. Right now, I am returning all rows and viewing them, making them readonly through session.Readonly ().
I like in the book what they do with smooth
class EntityMap : ClassMap<Entity> { public EntityMap() { SchemaAction.None(); ReadOnly();
What I'm not sure what will happen if I need these records so that they are not Readonly? For me, this means that I have to do this same display minus these two lines of code.
So, I would like to do this and have ReadonlyEntityMap and EntityMap, but I no longer need to duplicate all the settings twice.
Anyone have any ideas on how to do this? Or is it better to read ideas?
source share