How to tell Fluent NHibernate not to map a class property

You can just make HasEvents virtual in the class:

public virtual bool HasEvents { get { return Events.Count > 0; } }

You don’t need to add anything to the mappings.

You only need to tell fluent to ingore a property if you are using Auto Mapping, which I don’t think you are.

Leave a Comment