-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1a10672
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm newish to this .. I'm using Ninject v3.3.4 and AutoMapper v6.2.1
In a Database Layer I'm using the Factory Pattern as follows
return new PersonRepository() as IRepository<T, TId, TKey>;
where
public class PersonRepository : Repository<WEI.Models.Dto.Person, global::System.Int64?, global::System.Int64?>, I.IPersonRepository
and
and finally
Everything was working so long as I was using only AutoMapper Profiles within the Database Access Layer, but when I moved one of the Profiles into a Common DTO/Utility Assembly and introduced the bolded code in CreateConfiguration() the Unit tests began throwing
The bolded code in CreateConfiguration() was extracted from
How to Initialize AutoMapper Profiles in referenced project DLLs in ASP.Net webapp
This eventually researching the issue led me to your commit above. As it's seems you have solved the issue, I conclude that my implementation in the Repository() Constructor is flawed. But I"m not sufficiently familiar with Ninject to identify a fix. Can you make a recommendation to get me going n the right direction?