How can I map a class as immutable using FluentNHibernate. Using hbm I can do like this.
<class name="Namespace.YYYY" table="XXXX" mutable="false" >
Try this link: https://stackoverflow.com/a/2871277/1679310
summary:
class EntityMap : ClassMap<Entity>
{
public EntityMap()
{
ReadOnly();
// Mappings
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With