I want to save PDF files in mssql using nhibernate. How do i go about it.
I read little bit about it here, it tells that you can create a type to save the file as :
Map(x => x.Bytes)
.CustomSqlType("VARBINARY (MAX) FILESTREAM")
.Length(2147483647)
but I am still not able to understand what should be c# type of the field & and if its not FileInfo/FileStream then how to read write to that field.