Namespaces

Types in FluentNHibernate.Conventions

Type IConventionFinder

Namespace FluentNHibernate.Conventions

Convention finder - used to search through assemblies for types that implement a specific convention interface.

Methods

Public instance methods

void Add(Type type, object instance)

void Add<T>(T instance)

Add an instance of a convention.
Useful for supplying conventions that require extra constructor parameters.
Parameters
T instance

Instance of convention

void AddAssembly(Assembly assembly)

Add an assembly to be queried.
All convention types must have a parameterless constructor, or a single parameter of IConventionFinder.
Parameters
Assembly assembly

Assembly instance to query

void AddSource(ITypeSource source)

Add a source to be queried.
Parameters
ITypeSource source

Source to query

IEnumerable<T> Find<T>()

Find any conventions implementing T.
Return
IEnumerable<T>

IEnumerable of T