Question

Currently we are working on ASP .net application and i would prefer to go ahead with MVP pattern (for UI) due to several advantage it provides,

But the con of going ahead with that approach is too much of hand coding which will eat up time.

I already identified that it is possible to generate DAL with any template or by using LINQ to SQL but the only issue is with generating interface which should be implemented by usercontrol (view) and some boilerplate code (for data binding)

Now the question is

1) Is it possible to use codesmith template to get the MVP pattern (To generate interface & properties at UI layer as well as data binding)

2) It is not advisable to go ahead with MVP pattern and use the simple approach provided by codesmith template generator or any other tool

Note : I have also considered to go ahead with ASP .Net MVC but due to lack of knowledge (learning requirement) and project time line we have to drop that idea.

EDIT : In terms of man month effort it is of around 35-40 man month's effort to develop this application

Please suggest me.

Was it helpful?

Solution

1) Absolutely possible. The "how" depends quite a lot on what specifically you are doing and how well templates fit your patterns (or how well your needs can be distilled to code generation in general).

2) Impossible to say. Depends entirely on your needs.

You should really investigate ADO.NET Data Services and ASP.NET Dynamic Data Scaffolding frameworks. These are designed exactly to do the kind of generation you are asking for.

OTHER TIPS

A bit late but checkout the codesmith templates I just released. http://community.codesmithtools.com/CodeSmith/m/templates/42499.aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top