Create EF based repository base and application based implementation.
Clean up code so it works with CoreClr