Fluent NHibernate BinaryBlobType
问题 today i'm working on a MySQL Database, and i don't know how to Map a Byte[] to a BLOB Column... My Table looks this way: CREATE TABLE `images` ( `Id` INT NOT NULL AUTO_INCREMENT , `imgText` VARCHAR(45) NULL , `image` BLOB NULL , PRIMARY KEY (`Id`) ); Mapping: public class imagesMap : ClassMap<images> { public imagesMap() { Id(x => x.Id); Map(x => x.imgText); Map(x => x.image).CustomType<BinaryBlobType>(); } } Buisnessobject: public class images { public virtual int Id{get;set;} public virtual