I have a little problem with fluentNhibernate and MySQL. I would like to map my entity:
public class Topic
{
public Topic()
{
ParentTopic = null;
}
public virtual Guid Id { get; set; }
public virtual string Name { get; set; }
public virtual DateTime CreatedAt { get; private set; }
public virtual Guid CreatedBy { get; set; }
public virtual IList<Post> Posts { get; set; }
public virtual Topic ParentTopic { get; set; }
}
To a table with the same name. My bigest problem is how to I do the mapping of the CreatedAt
so that in the database I get a timestamp that is only changed on insert and ignored when updating.
thx ;)