I want to develop a web project using MVC4 WEB API with Entity Framework Database first, I appreciate if anybody can provide an real example, so I can follow it.
Basically, we have an existing SQL database with some table in SQL server, now, I want to use MVC 4 WEb API to show the data of table on website with browsing, Add, Delete, Update functions, I think I should use Database first of Entity Framework to connect
database.
Hi DarrellNorton, thanks for the quick response, your links are realy giving me a lot of help.
But that is Code first of Entity Frame work with web api, I appreciate if you can give me some examples with link which are using Database First on Entity Frame work, as I am new in MVC and EF, as for my case, I have the existing SQL database, that is why
I can not use Code First.
Peter Cong
Member
527 Points
681 Posts
How to combine MVC 4 WebAPI with Entity Framework Database first?
Jul 16, 2012 02:30 AM|LINK
Hi, I am new in MVC,
I want to develop a web project using MVC4 WEB API with Entity Framework Database first, I appreciate if anybody can provide an real example, so I can follow it.
Basically, we have an existing SQL database with some table in SQL server, now, I want to use MVC 4 WEb API to show the data of table on website with browsing, Add, Delete, Update functions, I think I should use Database first of Entity Framework to connect database.
Thanks for any help,
Peter
DarrellNorto...
All-Star
86805 Points
9644 Posts
Moderator
MVP
Re: How to combine MVC 4 WebAPI with Entity Framework Database first?
Jul 16, 2012 10:48 AM|LINK
There is an article on the basic steps of using EF 4.1 and WebAPI here: http://catalog.codeproject.com/Articles/350488/A-simple-POC-using-ASP-NET-Web-API-Entity-Framewor
There is an entire sample application covering EF 4.3, WebAPI and more here: http://efmvc.codeplex.com/
Darrell Norton's Blog
Please click "Mark as Answer" if this helped you.
Peter Cong
Member
527 Points
681 Posts
Re: How to combine MVC 4 WebAPI with Entity Framework Database first?
Jul 16, 2012 11:10 PM|LINK
Hi DarrellNorton, thanks for the quick response, your links are realy giving me a lot of help.
But that is Code first of Entity Frame work with web api, I appreciate if you can give me some examples with link which are using Database First on Entity Frame work, as I am new in MVC and EF, as for my case, I have the existing SQL database, that is why I can not use Code First.
Thanks a lot again,
Peter
alro
Member
12 Points
63 Posts
Re: How to combine MVC 4 WebAPI with Entity Framework Database first?
Jan 14, 2013 01:56 PM|LINK
Did you ever find a resource on the net that covered this area?
alro
Member
12 Points
63 Posts
Re: How to combine MVC 4 WebAPI with Entity Framework Database first?
Jan 21, 2013 01:39 PM|LINK
http://hectorea.com/blog/building-a-mvc-4-app-with-database-first-and-entity-framework-5-1/