EntityMetamodel -> determine non-identifier property

26 views
Skip to first unread message

Volodymyr Usarskyy

unread,
Jun 5, 2016, 1:21:57 PM6/5/16
to nhibernate-development
In EntityMetamodel class (lines 177-180) there is the following code:

if ("id".Equals(prop.Name))
 
{
 foundNonIdentifierPropertyNamedId
= true;
 
}

Here we are trying if there is a property "id" that is not identifier.

Wouldn't it be safer to have case-insensitive comparison? For cases like "Id" and "ID".
It does not look like that values that are assigned to Property.Name are always lowercased.
Reply all
Reply to author
Forward
0 new messages