Try using

mapping.Type(NHibernateUtil.Binary)

On , Keith Williams <[email protected]> wrote:
How would I go about mapping a MSSQL RowVersion column (an eight byte

binary) using the Conformist By Code mappings that are new in 3.2.



I am unable to use:



Version(x => x.RowVersion, mapping =>

{

mapping.Generated(VersionGeneration.Always);

mapping.Type((IVersionType)new BinaryType());

}

);



...BinaryType does not expose a constructor. How do I define the

IVersionType of the Version property to be binary? I can't use

typeof(System.Byte[]) because the mapping.Type overload that takes a

regular type will fail if it doesn't implement IUserVersionType.



Any ideas?



--

You received this message because you are subscribed to the Google Groups "nhusers" group.

To post to this group, send email to [email protected].

To unsubscribe from this group, send email to [email protected].

For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.




--
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to