Skip to content

Commit

Permalink
Merge pull request #29 from icambron/automapped_filters
Browse files Browse the repository at this point in the history
added convenience for adding filters to automaps
  • Loading branch information
jagregory committed Aug 9, 2011
2 parents 3bf3266 + 4f44829 commit ea41a9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/FluentNHibernate/Automapping/AutoPersistenceModel.cs
Expand Up @@ -317,6 +317,12 @@ public AutoPersistenceModel AddTypeSource(ITypeSource source)
return this;
}

public AutoPersistenceModel AddFilter<TFilter>() where TFilter : IFilterDefinition
{
Add(typeof(TFilter));
return this;
}

internal void AddOverride(Type type, Action<object> action)
{
inlineOverrides.Add(new InlineOverride(type, action));
Expand Down

0 comments on commit ea41a9e

Please sign in to comment.