Page 1 of 1

How to assign an interface to all entities

Posted: Tue 08 Jan 2013 18:24
by jamesklett
NHibernate - Database first, wizard creates classes but I did not see an option to specify that all my entities should have an base class or interface. I have a large model, many tables, and am trying to not have to go to each and every entity in the designer and set the interface.,

Is there are way to do this?

thanks

JAMES

Re: How to assign an interface to all entities

Posted: Thu 10 Jan 2013 15:26
by Shalex
Possible alternative ways:
-> select all needed classes in Model Explorer, press F4 and set Entity Base for selected classes simultaneously
-> left click on the diagram surface, press F4 and set the Entity Base property in the Extended Properties section.