You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type arguments for method 'ExpressMapper.MappingServiceProvider.Register<T,TN>(T, TN)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
#127
Open
maelmahdy opened this issue
Jan 30, 2017
· 4 comments
I'm getting this error after upgrading to v1.9.0,
i'm trying to map an entity with a lot of complex type & navigation properties to a similar DTO class but I got this exception:
The type arguments for method 'ExpressMapper.MappingServiceProvider.Register<T,TN>(T, TN)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
at CallSite.Target(Closure , CallSite , MappingServiceProvider , Object , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at ExpressMapper.MappingServiceProvider.MapNonGenericInternal(Type srcType, Type dstType, Object src, Object dest, Boolean dynamicTrial) in C:\Source\ExpressMapper\Expressmapper.Shared\MappingServiceProvider.cs:line 496
at ExpressMapper.MappingServiceProvider.Map[T,TN](T src) in C:\Source\ExpressMapper\Expressmapper.Shared\MappingServiceProvider.cs:line 283
at ExpressMapper.Mapper.Map[T,TN](T src) in C:\Source\ExpressMapper\Expressmapper.Shared\Mapper.cs:line 38
This was not happening with the previous version.
@anisimovyuriy ,
Can you fix this asap please, I only have 24 hours before the DEMO :)
The text was updated successfully, but these errors were encountered:
My apologies for inconvenience and thanks a lot for your contribution!
I'll try but I'd recommend to downgrade to 1.8.x - the latest stable version as I cannot promise that it will be fixed during 24h as I have tough schedule right now.
I got the same error due to casting a class to a base class and using mapper to bring it back to the original class. Sounds contrived but makes sense in our code.
We have received the same error, but have been unable to pinpoint the exact cause (i.e. reproduction scenario), as it doesn't happen consistently. The involved classes do not extend from any other class, so it doesn't seem to be the same as @JakeAlmer 's issue.
However it appears that perhaps there will be no more support for this project, as the last commit is from 16 months ago. @anisimovyuriy , can you please respond and/or let the community know if that is the case? Thank you!
I'm getting this error after upgrading to v1.9.0,
i'm trying to map an entity with a lot of complex type & navigation properties to a similar DTO class but I got this exception:
This was not happening with the previous version.
@anisimovyuriy ,
Can you fix this asap please, I only have 24 hours before the DEMO :)
The text was updated successfully, but these errors were encountered: