Page 1 of 1

set up class as read only

Posted: Thu 18 May 2017 01:11
by gr8user
Hi,
How can I prevent /not allow insert/update/delete for particular class in Entity Developer using NHibernate Designer?
I have tables from Oracle DB from another application. I updated model from database to add new classes based on tables from particular schema. Our application can select data from these new classes. But insert/update/delete are not allowed. What property of the class should be set?
Thanks,

Re: set up class as read only

Posted: Mon 22 May 2017 17:23
by Shalex
Please open your *.hbml model, select the class, press F4 (Properties) and set:
Mutable=False
Constructor Modifier=Protected

Re: set up class as read only

Posted: Tue 23 May 2017 22:43
by gr8user
It works!
Thank you.