-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Help Request] Mapper fails to create instances #129
Comments
Hello again! The constructor parameter configurations will need to come before the I'll take a look and sort it out! |
Unfortunately, the observed behavior does not change, even if I give an explicit factory-method for instance creation. I.E. |
Yeah - it's nothing you're doing wrong - |
* Method renames / Extending typed ToTarget test, re: #129, #130 * Extending typed ToTarget test / Adding failing ToTarget mapping callback test / Compiling ConfigInfo.ToMappingData caller * Improving MappingCreationContext ctors * Moving MappingCreationContext logic into MappingCreationContext * Tidying * Removing unused method / Tidying * Support for mapping callbacks within non-implementation pair, ToTarget mappings * Support for implementation pair ToTarget configuration Removing unnecessary package from EF2 Core test project * Continued * Tidying * Fixing support for ToTarget data sources in repeated mappings * Handling null configured implementation ToTarget data sources
Thanks for the fix, at first sight it looks good. |
* v1.4-preview branch * Bugs/issue129 (#131) * Short-circuiting expression replacement when target and replacement are the same * Specifically retrieving ToTarget data sources where required * Returning existing arrays in ICollection.ToArray if possible * Updating release notes * Adding v1.4-preview NuGet package * Bugs/issue130 (#132) * Method renames / Extending typed ToTarget test, re: #129, #130 * Extending typed ToTarget test / Adding failing ToTarget mapping callback test / Compiling ConfigInfo.ToMappingData caller * Improving MappingCreationContext ctors * Moving MappingCreationContext logic into MappingCreationContext * Tidying * Removing unused method / Tidying * Support for mapping callbacks within non-implementation pair, ToTarget mappings * Support for implementation pair ToTarget configuration Removing unnecessary package from EF2 Core test project * Continued * Tidying * Fixing support for ToTarget data sources in repeated mappings * Handling null configured implementation ToTarget data sources * Updating to v1.4-preview2 * Features/configured source member validation (#134) * Erroring if redundant matching source member is configured * Improving configured data source validation Support for same-typed configured data source for otherwise-unconstructable target members * Fixing ToTarget complex type entry dictionary mapping, re: #133 * Skipping existing dictionary value checks when target is definitely unpopulated * Code coverage changes / Tidying * Updating to v1.4-preview3 * Fixing build * Fixing complex type dictionary merging * Updating release notes * Updating to v1.4 * v1.4 NuGet package
v1.4 is now on NuGet. Cheers! :) |
Dear @SteveWilkes , I once again have a mapping problem, briefly shown in this fiddle: https://dotnetfiddle.net/6ufGhK
I'm using the new
ToTarget<>()
Method to specify the target. However, the target-classes do not offer a parameter-less constructor and hence I specify a more detailed mapping for the concrete case, where I give a constructor-parameter usingToCtor<>()
.At the moment I'm not quite sure, whether or not the mistake is at my site. Could please have a quick look?
The text was updated successfully, but these errors were encountered: