Added basic logic for the EnityFramework generic repository