deleted the previous entity , created the new one. Uninstalled the sql server 2014, installed 2012. Created the new connection. assigned the reference to the dll. Check code for more changes.