开发者

ASP.NET MVC2 Apps - Extending App

开发者 https://www.devze.com 2023-01-15 09:09 出处:网络
Here is my problem for using mvc2, I cant find a silver bullet fix for this. I have a standard mvc app which has following views, controllers and Models

Here is my problem for using mvc2, I cant find a silver bullet fix for this.

I have a standard mvc app which has following views, controllers and Models

View WorkOrders Estimates

Model WorkOrder Estimate开发者_如何转开发

Controller WorkOrderController EstimateController


I recently got a client who wants this app with little customization. I am still adding new modules to this app so I dont want to clone my app and customize because then I have to maintain two code bases. Upgrading any modules in base app as well as app that I cloned.

So here is how my Client App will look like

View ClientWorkOrders Estimates

Model WorkOrder Estimate

Controller ClientWorkOrderController EstimateController

Now If I want to add invoice I have to add it at both apps. Any easier way to handle this in microsoft mvc.


Without knowing much about the application -- you could turn to the provider model (depending how much additional functionality they need) or you could implement a plugin framework. Both options could be a huge architecture change.

I've never used it, but the MEF framework was specifically designed for creating plugin architectures.

0

精彩评论

暂无评论...
验证码 换一张
取 消