Removed manually generated model classes and used the CodeFirst to auto generate the models from the database model.