Please visit DEMANDDRAFT.STORE for quality of products...

Ad

Search This Blog

Tuesday, July 7, 2015

How to get the Data using Stored Procedure with out Parameter in MVC4 using Data base first approach

Please find the Code below


private DBContext dbContext = new DBContext();
        
        public List<CompleteForm> GetComppleteFormDetails()
        {
            using (var dbContext = new DBContext())
            {
                var completeForm = dbContext.Database.SqlQuery<CompleteForm>("exec USP_GetFullDetails").ToList<CompleteForm>();
                return completeForm.ToList();
            }
        }


No comments:

Post a Comment