还需要NetTiers吗? [英] Whither NetTiers?

查看:70
本文介绍了还需要NetTiers吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在多个项目中使用NetTiers一两个工作.我发现它对于在ASP.NET Web表单中生成后端接口非常有用.业务和数据层也很不错.我通常使用NHibernate,但我认为就这些特定项目而言,运行起来可能会过头.

I used NetTiers in a number of projects a job or two back. I found it extremely useful for generating back-end interfaces in ASP.NET webforms. The business and data layers were also pretty sweet. I typically use NHibernate, but I think it may be overkill on these particular projects in terms of the time it will take to get running.

从那时起,我一直在从事几乎所有面向最终用户的项目.但是,我最近得到了一个附带项目,该项目将包含许多后端管理内容,并且想知道NetTiers是否仍像几年前一样维护得很好且干净整洁.它似乎没有,但我不知道这是否意味着它实际上已被放弃或仅仅是移至其他地方.还是有其他产品(最好是一组CodeSmith模板)更适合我?我真正需要的是一个干净的ActiveRecord模型,该模型可以在后端访问SQL数据库并为大多数模型对象的CRUD屏幕生成简单的用户界面.我需要能够像NetTiers一样对对象图进行深度加载的东西.

Since then, I've been working on projects where practically everything is end-user facing. However, I've recently gotten a side project that will have a lot of back-end administrative stuff and was wondering if NetTiers is still as well-maintained and clean as it was a couple of years back. It doesn't appear to be, but I don't know if that means that it has actually been abandoned or if it has merely been moved elsewhere. Or is there another product (preferably a set of CodeSmith templates) that might work better for me? All I really need is a clean ActiveRecord model that can hit a SQL database on the backend and generate simple user interfaces for CRUD screens for most of my model objects. I need something that will do deep-loading of object graphs kind of like NetTiers will do as well.

有什么建议吗?

推荐答案

我目前正在支持大型NetTiers应用程序,而我的经验通常令人沮丧.我继承了该项目并接管了模板的维护,修复了模板中的许多错误,并对生成的文件应用了一些后代脚本.恕我直言,生成的代码过于冗长,遭受大量重复,并且将从更多使用泛型中受益.我正在使用的模板未正确处理资源(较新的模板版本可能会更好).有一次我考虑过升级到新版本,但是练习的规模使我失望了.很难找到有用的文档,并且无法直接获得NetTiers问题的答案.我的总体印象是逐渐下降的一种.

I'm currently supporting a large NetTiers application and my experience has generally been one of frustration. I inherited the project and took over maintenance of the templates, fixing a number of bugs in the templates and applying some post-generation scripts to the generated files. IMHO the generated code is overly verbose, suffers from massive duplication, and would benefit from more use of generics. The templates I'm working with didn't dispose of resources correctly (the newer template versions may be better). At one point I considered upgrading to a newer version but the size of the exercise put me off. Useful documentation is difficult to find and getting answers to NetTiers questions is not straight forward. The overall impression I have is one of gradual decline.

如果您只是想从SQL数据库生成UI的简单.Net堆栈中,建议您使用 AutoMapper

If you're just after a simple .Net stack for generating a UI from a SQL database I suggest you take a look at ASP.NET MVC3 with MvcScaffolding and Entity Framework. Add AutoMapper and Munq for DI.

这篇关于还需要NetTiers吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆