Added EntityFramework
Fixed repository problems and unittests