I'm getting the exact same problem. My classes are similar:
public class JobAttachment : Entity
{
public virtual Job Job { get; set; }
public virtual DateTime CreatedDate { get; set; }
public virtual User CreatedBy { get; set; }
}
public class ImageAttachment : JobAttachment
{
public virtual string Description { get; set; }
public virtual ImageData Thumbnail { get; set; }
public virtual ImageDate FullSize { get; set; }
}
public class ImageData : Entity
{
public virtual string MimeType { get; set; }
public virtual byte[] Data { get; set; }
}
Setup code is more or less identical:
sessionFactory = Fluently.Configure()
.Database(MsSqlConfiguration.MsSql2005.ConnectionString(x => x.Is
(connectionString)).ShowSql())
.Mappings(m =>
{
m.AutoMappings.Add(AutoPersistenceModel
.MapEntitiesFromAssemblyOf<Entity>()
.Where(x => typeof(Entity).IsAssignableFrom(x))
.WithSetup(x =>
{
x.IsBaseType = t => t == typeof(Entity);
}
})
.ExposeConfiguration(c => c.Properties.Add
("proxyfactory.factory_class",
"NHibernate.ByteCode.Castle.ProxyFactoryFactory,
NHibernate.ByteCode.Castle"))
.BuildSessionFactory();
I updated from SVN last night (20th May).
> On Mon, May 18, 2009 at 2:09 PM, James Gregory <
jagregory....@gmail.com>wrote:
>
> > When was the last time you did an update?
>