Question: I get an exception serializing this class to a nHibernate xml file ({"Could not determine type for: System.Drawing.Image, System.Drawing, for columns: NHibernate.Mapping.Column(Settings)"}).
How to map System.Drawing.Image to nHibernate ? And what MS-SQL dbtype is to be used?
using System;
using System.Collections.Generic;
using System.Text;
namespace nhDBapi.Tables
{
[NHibernate.Mapping.Attributes.Class(Name = "nhDBapi.Tables.clsSettings, nhDBapi", Table = "lsSettings")]
public class clsSettings
{
[NHibernate.Mapping.Attributes.Id(Name = "Settings", Column = "Settings", TypeType = typeof(System.Drawing.Image))]
public System.Drawing.Image Settings;
} // End partial class lsSettings
} // End Namespace nhDBapi.Tables