Skip to content

Commit 8fb5c43

Browse files
committed
fix #146
1 parent e0f27c7 commit 8fb5c43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/FluentNHibernate/Automapping/DefaultAutomappingConfiguration.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public virtual bool ShouldMap(Type type)
2020
return !type.ClosesInterface(typeof(IAutoMappingOverride<>)) &&
2121
!type.HasInterface(typeof(IMappingProvider)) &&
2222
!type.IsNestedPrivate &&
23+
!type.IsDefined(typeof(System.Runtime.CompilerServices.CompilerGeneratedAttribute), false)
2324
type.IsClass;
2425
}
2526

0 commit comments

Comments
 (0)