create a new ADO.Net Entity Data Model using "EF Designer from database". next steps should follow , call to store procedure and write function in the context class
http://www.codeproject.com/Questions/705569/How-to-call-a-Stored-Procedure-in-Code-First-Entit