Namespaces

Types

Type AutoPersistenceModel

Namespace FluentNHibernate.Automapping

Parent PersistenceModel

Methods

Properties

Public instance methods

AutoPersistenceModel AddEntityAssembly(Assembly assembly)

Adds all entities from a specific assembly.
Parameters
return AutoPersistenceModel
Assembly assembly Assembly to load from

AutoPersistenceModel AddTypeSource(ITypeSource source)

Adds all entities from the ITypeSource.
Parameters
return AutoPersistenceModel
ITypeSource source ITypeSource to load from

AutoPersistenceModel Alterations(Action<AutoMappingAlterationCollection> alterationDelegate)

Specify alterations to be used with this AutoPersisteceModel
Parameters
return AutoPersistenceModel AutoPersistenceModel
Action<AutoMappingAlterationCollection> alterationDelegate Lambda to declare alterations

IMappingProvider FindMapping(Type type)

Parameters
return IMappingProvider
Type type

IMappingProvider FindMapping<T>()

Parameters
return IMappingProvider

AutoPersistenceModel IgnoreBase(Type baseType)

Ignore a base type. This removes it from any mapped inheritance hierarchies, good for non-abstract layer supertypes.
Parameters
return AutoPersistenceModel
Type baseType Type to ignore

AutoPersistenceModel IgnoreBase<T>()

Ignore a base type. This removes it from any mapped inheritance hierarchies, good for non-abstract layer supertypes.
Parameters
return AutoPersistenceModel

AutoPersistenceModel IncludeBase(Type baseType)

Explicitly includes a type to be used as part of a mapped inheritance hierarchy.
Abstract classes are probably what you'll be using this method with. Fluent NHibernate considers abstract classes to be layer supertypes, so doesn't automatically map them as part of an inheritance hierarchy. You can use this method to override that behavior for a specific type; otherwise you should consider using theAbstractClassIsLayerSupertype setting.
Parameters
return AutoPersistenceModel
Type baseType Type to include

AutoPersistenceModel IncludeBase<T>()

Explicitly includes a type to be used as part of a mapped inheritance hierarchy.
Abstract classes are probably what you'll be using this method with. Fluent NHibernate considers abstract classes to be layer supertypes, so doesn't automatically map them as part of an inheritance hierarchy. You can use this method to override that behavior for a specific type; otherwise you should consider using theAbstractClassIsLayerSupertype setting.
Parameters
return AutoPersistenceModel

AutoPersistenceModel Override<T>(Action<AutoMapping<T>> populateMap)

Override the mapping of a specific entity.
This may affect subclasses, depending on the alterations you do.
Parameters
return AutoPersistenceModel
Action<AutoMapping<T>> populateMap Lambda performing alterations

AutoPersistenceModel OverrideAll(Action<IPropertyIgnorer> alteration)

Override all mappings.
Currently only supports ignoring properties on all entities.
Parameters
return AutoPersistenceModel
Action<IPropertyIgnorer> alteration Lambda performing alterations

AutoPersistenceModel Setup(Action<AutoMappingExpressions> expressionsAction)

Alter some of the configuration options that control how the automapper works
Parameters
return AutoPersistenceModel
Action<AutoMappingExpressions> expressionsAction

AutoPersistenceModel UseOverridesFromAssemblyOf<T>()

Use auto mapping overrides defined in the assembly of T.
Parameters
return AutoPersistenceModel AutoPersistenceModel

AutoPersistenceModel Where(Func<Type, bool> where)

Parameters
return AutoPersistenceModel
Func<Type, bool> where

Public properties

SetupConventionFinder<TReturn> Conventions get;

Alter convention discovery
return SetupConventionFinder<TReturn>

bool MergeMappings get; set;

return bool

bool ValidationEnabled get; set;

return bool