Fluent NHibernate: How to map an entire class as ReadOnly?
Posted
by Rafael E. Belliard
on Stack Overflow
See other posts from Stack Overflow
or by Rafael E. Belliard
Published on 2010-05-20T05:35:02Z
Indexed on
2010/05/20
5:40 UTC
Read the original article
Hit count: 259
I have a few classes that read from very delicate tables, which is why I want them to be used by NHibernate as "ReadOnly". Establishing .ReadOnly() on each field map is really sloppy, and I'm not sure I trust it. How do I setup a class to be entirely readonly, as I can easily do with traditional XML mappings?
Thanks.
© Stack Overflow or respective owner