How can I reuse a model or DAL & BLL with MVC web pages

I am working on this demo project which has the following requirement.

Requirement:One Survey application, in which there are objective type questions and answers (option a, option b ... Option n). Among which, the user needs to give one or more answers, and he can also provide the best answer.

(Since there is one survey module in this project that I need to develop as part of MVC, and the rest of the project is in ASP.NET.

Confusion 1:I got confused how I could reuse the existing model and the old style mix SDAto bind to a new application. According to MVC- more html oriented to the asp.net platform approach excludes binding control and all the others. (Otherwise, I would work as an independent module, new compatibility with the model view controller.

Confuion 2: Whether this polling application could be deployed as yet another module of this application over a server or independent.

UPDATE . My question is to reuse the MODELS of the old .ASPX project in the MVC project.

+4
source share
2 answers

, , DAL BLL, , -.

:

  • ( webforms mvc)
  • ?

, :

1.: , rosko - DAL BLL MVC, Webforms.

2.: , , MVC - . , " ", chandresh.


, : , DAL MVC.

MVC - -. MVC Entity Framework, , DAL. , .

, - , MVC. , "" - , -. WebForms , , .

MVC (View) () . - , javascript, knockout, ajax-based- , Breeze.

" ", "mvc" / "datasource" :

, , : -) </kidding>

+1

, . mvc aspx webforms init, . scenerio - .

ASP.NET MVC - ASP.NET

+1

Source: https://habr.com/ru/post/1541216/


All Articles