|
From: Omri F. (JIRA) <nh...@gm...> - 2011-02-05 16:09:13
|
[ http://216.121.112.228/browse/NH-2401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Omri Fima updated NH-2401:
--------------------------
Attachment: nh_2401.patch
a patch for NH-2401 as Thomas Hotz suggested,
two extesion methods were written:
session.Query<Person>.Where(x => x.SimpleProperty.SomeRelation( simpleValue)).MapParameter(simpleValue.GetType(), UserType)
which allows to map any arbitrary System.Type to UserType.
session.Query<Person>.Where(x => x.SimpleProperty.SomeRelation( simpleValue)).MapParameter(simpleValue, UserType)
which provides a simpler form to map the parameter type from the parameter itself. but is less powerful, since it does not allow to map a base type, and allow the query to resolve the descendent parameter type.
> Method for specifying IType of LINQ parameter
> ---------------------------------------------
>
> Key: NH-2401
> URL: http://216.121.112.228/browse/NH-2401
> Project: NHibernate
> Issue Type: Improvement
> Components: Linq Provider
> Affects Versions: 3.0.0.Beta1
> Reporter: Patrick Earl
> Attachments: nh_2401.patch
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|