Nhibernate documentation specfies ReferenceAny()
as a method to do the mapping inheritance trees.
Check doc here. However the code specifies the method as deprecated and will be removed in the next versions. Is there any other way to map this.
Nhibernate documentation specfies ReferenceAny()
as a method to do the mapping inheritance trees.
Check doc here. However the code specifies the method as deprecated and will be removed in the next versions. Is there any other way to map this.
Only the ReferencesAny<TOther>(Member property)
overload has been deprecated. ReferencesAny<TOther>(Expression<Func<T,TOther>> memberExpression)
is still perfectly valid.
It's the same type of confusion as when people claim that Enum.ToString
has been deprecated. The overloads that take an IFormatProvider
have been deprecated, but the other ToString
overloads are fine. The problem is that Intellisense shows the member stricken-out, even though only a subset of its overloads are actually obsolete.
For more information on using ReferencesAny
in Fluent NHibernate, see my other answer: Mapping to multiple tables with Fluent nHibernate