Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how to define in byte[] in hbm.xml

I am using nhibernate in asp.net

i have to save pdf file into sqlserve
database fields type is in sqlserver = varbinary(MAX)


in asp.net i can retrive in byte[]


what to use in hbm.xml file in propety???

thanks
Posted
Updated 16-Feb-13 6:48am
v2

1 solution

Following CP article will explain you on how to integrate NHibernate with ASP.NET: NHibernate Best Practices with ASP.NET, 1.2nd Ed.[^]

Download the sample, go through article, learn and try out!
 
Share this answer
 
Comments
Maciej Los 16-Feb-13 12:50pm    
My 5!
Sandeep Mewara 16-Feb-13 13:40pm    
Thanks Maciej. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900