-
Notifications
You must be signed in to change notification settings - Fork 936
Description
Danko Durbić created an issue — 16th March 2016, 15:53:38:
void EntityName(string entityName)
is missing inNHibernate.Mapping.ByCode.IManyToManyMapper
. For example it doesn't seem possible to translate this xml mapping:<many-to-one name="Foo" column="FooId" class="Bar" entity-name="BarEntity"/>to code. Both
IManyToManyMapper
andIOneToManyMapper
do haveEntityName
Koch added a comment — 21st December 2016, 15:16:53:
Why has the issue gotten minor priority? To our team it is almost show stopper.
We have many tables with identical names in our database, residing in different schemas.
To keep things clean our entity classes have same names as tables, and there seems to
be no way in NH to have two identically named classes other than to assign different
'entity-name's to them. However once entity name is assigned to a class, it has to be
referenced by entity name only. Which is not supported by IManyToOneMapper.