I see the following error on my Fluent NHibernate card:
NHibernate.MappingException: Association references unmapped class: System.Guid
I swear I did it before, and it worked, so I'm not sure what causes the problem. I am using FNH 1.1 with a SQLite database. Here is my class and map:
public class Photo { public virtual Guid Id { get; set; } public virtual byte[] Data { get; set; } public virtual string Caption { get; set; } } public class PhotoMap : ClassMap<Photo> { public PhotoMap() { Id(p => p.Id).GeneratedBy.Guid(); Map(p => p.Caption); Map(p => p.Data); } }
Thanks for the help.
source share