We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64b2ffb commit 40abc62Copy full SHA for 40abc62
src/FluentNHibernate/Automapping/AutoMappingAlterationCollection.cs
@@ -37,7 +37,7 @@ public AutoMappingAlterationCollection Add<T>() where T : IAutoMappingAlteration
37
/// <returns>Container</returns>
38
public AutoMappingAlterationCollection Add(IAutoMappingAlteration alteration)
39
{
40
- if (!alterations.Exists(a => a.GetType() == alteration.GetType()))
+ if (!alterations.Exists(a => a.GetType() == alteration.GetType() && alteration.GetType() != typeof(AutoMappingOverrideAlteration)))
41
alterations.Add(alteration);
42
return this;
43
}
0 commit comments