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

Adding stored procedures to EF when doing code first (For already Existing but forgot to add Store porcedures warlier)

$
0
0
protected override void OnModelCreating(DbModelBuilder modelBuilder)

        {

            modelBuilder.Entity<yourEntityName>().MapToStoredProcedures();

        }

This above code can be used while creating code first approach EF.But what is the process to access Stored procedure for already Existing Entity model?Please Help.Thanks in advance


Viewing all articles
Browse latest Browse all 1698

Trending Articles



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