From: Patrick E. (JIRA) <nh...@gm...> - 2011-02-05 21:25:21
|
[ http://216.121.112.228/browse/NH-2401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20547#action_20547 ] Patrick Earl commented on NH-2401: ---------------------------------- Hi Omri. Thanks for your work and thoughts on this issue. Both of the the methods suffer from the limitation that a single System.Type cannot be mapped to multiple ITypes. For example, a particular boolean value might be stored using YesNo for one column and Boolean for a different column. Since this parameter mapping would rarely be needed anyways, I'd much prefer it if it was specific to the parameter itself, as in other parameter apis (for example SetParameter(0, value, type)). For example: session.Query<Person>().Where(x => x.SimpleProperty.SomeRelation(simpleValue.MappedAs(UserType))) > 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 |