Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have created ADO.NET entity framework with Sql Server and using this Model in .NET assembly connector now so far in Methods i have been View and Tables to get data from but now i would like to use store procedure to do CRUD Operation please advise me if anyone out there has done it or have any direction.

Thanks ROnak

share|improve this question

1 Answer 1

I'm thinking why would you need to build your own Stored Procedure when the EF model should give you everything already. What I would see is however define required methods in your BDC Model besides Finder methods the CRUD and map them to actual code to perform Entity insertion.

See video here for EF Crud via Stored Procedures http://channel9.msdn.com/Blogs/wriju/CRUD-using-Stored-Procedure-in-ADONET-Entity-Framework-40 or example here http://www.c-sharpcorner.com/UploadFile/54db21/crud-operations-with-stored-procedures-via-entity-data-model/

As a personal question: Unless you only have 1 entity, how would you expose all other EF entities?

share|improve this answer
    
Thanks Marius for answer i am not building store procedure i want to use SPs export into model but now i have clear picture as i need to function import in order to use SPs in EF.will give try and share result here. –  Ronak Jul 31 '12 at 13:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.