Skip to content

Commit ea41a9e

Browse files
committed
Merge pull request #29 from icambron/automapped_filters
added convenience for adding filters to automaps
2 parents 3bf3266 + 4f44829 commit ea41a9e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/FluentNHibernate/Automapping/AutoPersistenceModel.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,12 @@ public AutoPersistenceModel AddTypeSource(ITypeSource source)
317317
return this;
318318
}
319319

320+
public AutoPersistenceModel AddFilter<TFilter>() where TFilter : IFilterDefinition
321+
{
322+
Add(typeof(TFilter));
323+
return this;
324+
}
325+
320326
internal void AddOverride(Type type, Action<object> action)
321327
{
322328
inlineOverrides.Add(new InlineOverride(type, action));

0 commit comments

Comments
 (0)