Last post Sep 06, 2017 08:51 AM by AngelinaJolie
Sep 05, 2017 11:41 PM|Rich dvc|LINK
I have been doing mostly webform development for the last few years, but I finally got a project using MVC and Entity Framework. Currently, the place is using EF directly in the application. I will be starting a new MVC project from scratch and would
like to follow good practices. I'm thinking about REST, ... maybe webApi (this place is still old school just started migrating from webforms). Is it ok to use EF directly in the app or should I suggest the web service route?
Sep 06, 2017 04:11 AM|Kelmen|LINK
Is it ok to use EF directly in the app
tons of online samples, even some framework (especially mvc) is doing in this way
but imo, it's not a "good" way
separation of concern, the web app is not meant to do data stuffs, it should be done in "data layer" component
btw, "old school" is much practical and proper in many designs.
many "latest" design is geared toward dumber new generation of software developer
Sep 06, 2017 08:51 AM|AngelinaJolie|LINK
Is it ok to use EF directly in the app or should I suggest the web service route?
If you have already some web services ,you still could use it in mvc application ,http://www.c-sharpcorner.com/article/consuming-web-service-in-asp-net-mvc/
and It recommend to use EF(Code First) in application , here are some official tourists(you could download the complete example and run it on local);