问题
how to store images in db and map them with nhibernate
回答1:
You can map binary data using the binary type which equates to a byte[] array in code and a varbinary in the database. This may cause performance issues if you load a number of objects containing binary data or large objects because the objects will be kept in memory in the first level cache. This article discusses techniques to improve performance in this situation.
来源:https://stackoverflow.com/questions/808484/storing-images-in-db-and-map-them-with-nhibernate