So I've been procrastinating to do MVC for years now, but I managed to go through some tutorial, videos and I'm busy reading Manning's ASP.Net MVC 4 in Action book and it is a good read.
I understand controllers (and actions) and views. I can actually write a decent small system with it and and the whole scaffolding makes everything quicker. In fact I'm busy developing a small system (which might grow in a long run) fro my company's one department.
I understand you can put your POCOs in a your model folder if it is not such a big system, but from my experience in my company, the user requirements grow every day. So I develop as I go along.
Any tips as to developing a well structured project? This is noobish question, but I have a lot of systems that I developed in Web Forms that I intend cleaning up and moving them to MVC in my spare time.
Read a lot on SO and youtube videos and everyone seems to have their own way of doing things. I kinds like this structure somewhat.
MVCDemo.Common ==>Class library
MVCDemo.Core ==>Class library
MVCDemo.DAL==>Class library
MVCDemo.Web ==>web project with my controllers, view, models, css, js, etc
Any suggestion or direction will be appreciated. Tx
Edit: Should I use EF or should I just user Micro ORM (e.g. Dapper)?
Been using Dapper (thanks to semphore) for all my WebForms projects and I'm happy with it.
I understand controllers (and actions) and views. I can actually write a decent small system with it and and the whole scaffolding makes everything quicker. In fact I'm busy developing a small system (which might grow in a long run) fro my company's one department.
I understand you can put your POCOs in a your model folder if it is not such a big system, but from my experience in my company, the user requirements grow every day. So I develop as I go along.
Any tips as to developing a well structured project? This is noobish question, but I have a lot of systems that I developed in Web Forms that I intend cleaning up and moving them to MVC in my spare time.
Read a lot on SO and youtube videos and everyone seems to have their own way of doing things. I kinds like this structure somewhat.
MVCDemo.Common ==>Class library
MVCDemo.Core ==>Class library
MVCDemo.DAL==>Class library
MVCDemo.Web ==>web project with my controllers, view, models, css, js, etc
Any suggestion or direction will be appreciated. Tx
Edit: Should I use EF or should I just user Micro ORM (e.g. Dapper)?
Been using Dapper (thanks to semphore) for all my WebForms projects and I'm happy with it.
Last edited: