Updated entity framework  configuration.