Skip to content

Commit 4f44829

Browse files
committed
added convenience for adding filters to automaps
1 parent 8ddda12 commit 4f44829

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
@@ -293,6 +293,12 @@ public AutoPersistenceModel AddTypeSource(ITypeSource source)
293293
return this;
294294
}
295295

296+
public AutoPersistenceModel AddFilter<TFilter>() where TFilter : IFilterDefinition
297+
{
298+
Add(typeof(TFilter));
299+
return this;
300+
}
301+
296302
internal void AddOverride(Type type, Action<object> action)
297303
{
298304
inlineOverrides.Add(new InlineOverride(type, action));

0 commit comments

Comments
 (0)