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
As the title says the Setup() method is not invoked on the resolved data mapper when using the DataMapperAttribute to specify a data mapper directly on a property.
This causes AbstractDataMapper.Configuration property to never be set, which results in NullReferenceExceptions in most cases.
The text was updated successfully, but these errors were encountered:
publicclassStubClass{[DataMapper(typeof(StubMapper))]publicstringStubMapperProperty{get;set;}}publicclassStubMapper:AbstractDataMapper{// This is not invokedpublicoverridevoidSetup(DataMapperResolverArgsargs){base.Setup(args);}}
It should also be pretty clear from the PR #381 with the new unit test.
As the title says the
Setup()
method is not invoked on the resolved data mapper when using theDataMapperAttribute
to specify a data mapper directly on a property.This causes
AbstractDataMapper.Configuration
property to never be set, which results inNullReferenceException
s in most cases.The text was updated successfully, but these errors were encountered: