I'm using FluentNHibernate but NHibernate XML will do.
Say I have this model
public User
{
public User()
{
ProfilePicture = new Picture();
}
public Guid Id { get; private set; }
public Picture ProfilePicture { get; set; }
}
public Picture
{
int width;
int height;
}
How do I tell NHibernate how to store and retrive the ProfilePicture?
I know in Fluent its like
Map(x => x.ProfilePicture);
but that doesnt work.