是否可以将 MVP 模式与 Codesmith Ntier 或 PLINQO 模板一起使用
目前我们正在开发 ASP .net 应用程序,我更愿意继续使用 MVP 模式(用于 UI),因为它提供了多种优势,
但继续使用该方法的缺点是需要太多的手工编码,这会占用时间。
我已经确定可以使用任何模板或使用 LINQ to SQL 生成 DAL,但唯一的问题是生成应该由用户控件(视图)和一些样板代码(用于数据绑定)实现的接口
现在的问题是
1 ) 是否可以使用 Codesmith 模板来获取 MVP 模式(在 UI 层生成接口和属性以及数据绑定)
2) 不建议继续使用 MVP 模式并使用 Codesmith 模板提供的简单方法生成器或任何其他工具
注意:我也考虑过继续使用 ASP .Net MVC,但由于缺乏知识(学习要求)和项目时间线,我们不得不放弃这个想法。
编辑:就人月工作量而言,开发此应用程序大约需要 35-40 人月的工作量,
请建议我。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
1)绝对有可能。 “如何”在很大程度上取决于您具体在做什么以及模板与您的模式的契合程度(或者您的需求可以在多大程度上提炼为一般的代码生成)。
2)不能说。完全取决于您的需求。
您确实应该调查 ADO.NET 数据服务 和 ASP.NET 动态数据 脚手架框架。这些产品的设计正是为了满足您所要求的一代。
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.
有点晚了,但请查看我刚刚发布的 Codesmith 模板。
http://community.codesmithtools.com/CodeSmith/m/templates/42499。 ASPX
A bit late but checkout the codesmith templates I just released.
http://community.codesmithtools.com/CodeSmith/m/templates/42499.aspx