Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

EF and map store procedure

$
0
0

i just read this article http://www.c-sharpcorner.com/UploadFile/ff2f08/call-store-procedure-from-entity-framework/

they show how they add store procedure to EF

StrPcr1.jpg

i though when we select store procedure by entity data model wizard then i do not have to do anything to call the store procedure from code but this article showing later we need to doAdd Function Import . my question is when we select store procedure by entity data model wizard then why we need to go for theadd function import ?

please tell me can't we call store procedure just after selecting it without function import.

please guide me. why and when function import is required ?


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>