Alternatively, you can download my project on Codeplex. I have a working example that you can copy. https://entityinterfacegenerator.codeplex.com/ It generates the interface files that you need for IoC purposes.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)