What's wrong with it? The mapping XML for NHibernate should be the same I
think.
Hmm... or do you actually mean to convert it into FluentNHibernate syntax?
Looks pretty straightforward to me:
Map(p => p.Document).Column("Document").CustomSqlType("image");
What have you tried and what problems to you get?
Use .CustomType() also if you need to adjust how NHibernate handles it.
Den tis 11 feb. 2020 kl 20:23 skrev Samuel Alkimim <
[email protected]>:
> Can anyone change the code bellow in Hibernate to nhibernate, i've been
> tried many things but i haven't success, can anyone help me please?
>
> <property name="Document" type="BinaryBlob" >
> <column name="Document" sql-type="image"/>
> </property>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Fluent NHibernate" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/fluent-nhibernate/0ae2237e-0bc0-42e2-bb61-c9b5cd44adeb%40googlegroups.com
> <https://groups.google.com/d/msgid/fluent-nhibernate/0ae2237e-0bc0-42e2-bb61-c9b5cd44adeb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fluent-nhibernate/CAHOuc7MMbjnhZwLHH329-dyUFLw90RWi3oBf3MiH2zdXQYc0tA%40mail.gmail.com.