Skip to content

NH-3860 - Missing EntityName in IManyToOneMapper #1182

@nhibernate-bot

Description

@nhibernate-bot

Danko Durbić created an issue — 16th March 2016, 15:53:38:

void EntityName(string entityName) is missing in NHibernate.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 and IOneToManyMapper do have EntityName


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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions