Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i created a application in MVC 4 using database first approach.
when i insert a record through application it will not saved in sql server database 2008 R2,instaed it saving record in PayrollProjectContext (PayrollProject).every thing is created fine. but what to do so that record will store in database.
thanks

What I have tried:

no idea what to do more since i am created what defined in articles and asp.net site.
May be i have to make change in web.config,but what don't know please help.
Posted
Updated 20-Jul-16 23:49pm
v2
Comments
King Fisher 21-Jul-16 5:07am    
without seeing the code, we cant Identity what you have done.

1 solution

Without codes, we can only guess. Also have you tried debugging your code? Are you getting error?

If you are new to ASP.NET MVC, then perhaps this series of article will help you: ASP.NET MVC 5: Building Your First Web Application - Part 1[^]

That series is in MVC 5, but I'm pretty sure the concept is the same. It also use a EF with database approach and is targeted for beginners.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900