Revert "entity framework error fix"

This reverts commit 0d1a9687616ece7b3645f93532e89ecd143dc8a5.