From: Michael T. (JIRA) <nh...@gm...> - 2011-05-26 23:48:57
|
[ http://216.121.112.228/browse/NH-2739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21209#action_21209 ] Michael Teper commented on NH-2739: ----------------------------------- That worked, thank you! Does your last comment mean that the type needs to open up a parameterless constructor? > Can't get ByCode mapping to produce not nullable varbinary(max) > --------------------------------------------------------------- > > Key: NH-2739 > URL: http://216.121.112.228/browse/NH-2739 > Project: NHibernate > Issue Type: Bug > Components: Mapping by-code > Affects Versions: 3.2.0Beta1 > Reporter: Michael Teper > Priority: Major > > Trying to map the following class: > public class MyData > { > public byte[] Data { get; set; } > } > to 'varbinary(max) (not null)' field in SQL Server 2008. > mapper.Class<MyData>(map => > { > map.Property(x => x.Data, m => m.Length(int.MaxValue)); > map.Property(x => x.Data, m => m.NotNullable(true)); > }); > produces 'image(null)' -- 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 |