AutoMapper.EF6 | Extensions for AutoMapper and EF6 | Code Editor library
kandi X-RAY | AutoMapper.EF6 Summary
kandi X-RAY | AutoMapper.EF6 Summary
Extensions for AutoMapper and EF6.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AutoMapper.EF6
AutoMapper.EF6 Key Features
AutoMapper.EF6 Examples and Code Snippets
Community Discussions
Trending Discussions on AutoMapper.EF6
QUESTION
I'm using Effort
, Effort.EF6
as my In-Memory database to test my Web API 2
application.
I'm using Autofac
for my DI resolve.
This is my code in Startup.cs
ANSWER
Answered 2018-Oct-02 at 07:17I think, I managed to reproduced your issue. You see Effort
and Effort.EF6
are mutually exclusive libraries, you only one of them. According to Effort github:
If you use Entity Framework 6...
- You will need the Effort.EF6 package
- Check the offical NuGet site
otherwise...
- You will need the Effort package
- Check the offical NuGet site
I got your error when I have reference to dll from Effort
package in my csproj file:
QUESTION
I have a class for getting data from DB, which looks like this (some field are missing for keeping it simple):
...ANSWER
Answered 2017-Nov-07 at 10:50By default AM uses constructor mapping when possible, so in your case it tries to use the DTO constructor with parameters, which is not supported by EF.
To fix the issue, either disable the constructor mapping globally (as mentioned in the link):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AutoMapper.EF6
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page