Browse Source
Update AbpAutoMapperConventionalRegistrar.cs
pull/11219/head
maliming
4 years ago
No known key found for this signature in database
GPG Key ID: 96224957E51C89E
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.AutoMapper/Volo/Abp/AutoMapper/AbpAutoMapperConventionalRegistrar.cs
|
|
|
@ -18,7 +18,7 @@ namespace Volo.Abp.AutoMapper |
|
|
|
|
|
|
|
protected override bool IsConventionalRegistrationDisabled(Type type) |
|
|
|
{ |
|
|
|
return type.GetInterfaces().Any(x => x.IsGenericType && OpenTypes.Contains(x.GetGenericTypeDefinition())) || |
|
|
|
return !type.GetInterfaces().Any(x => x.IsGenericType && OpenTypes.Contains(x.GetGenericTypeDefinition())) || |
|
|
|
base.IsConventionalRegistrationDisabled(type); |
|
|
|
} |
|
|
|
|
|
|
|
|