Updated to Entity framework 6.1