再次重写相同的asp.net应用程序
我有一个asp.net应用程序,它是用传统方法[SqlConnection. SqlAdapter.. ..] 在数据访问层中,我可以看到每次我们都在建立连接并使用适配器。代码是以非常肮脏的方式编写的。我的任务是以标准/最佳实践方式重新编写应用程序。 我已经编写了所有存储过程,有什么方法可以使用类似的工具来帮助我编写业务层和数据访问层?
I have a asp.net application which is written in the traditional method [SqlConnection. SqlAdapter.. ..] in data access layer, I can see that every time we are making a connection and using adapters. Code is written in a very dirty manner. I have been given the task to re write the application in standard/best practice way.
i have all stored procedure already written, is there any way I can use a tool like which will help me in writing the business layer and data access layer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我建议你去找codesmith。由于您已经编写了所有存储过程,因此您可以选择 LINQ to SQL 功能。
I suggest you to go for codesmith. As you have all the Stored procedure already written you can either go for the LINQ to SQL feature.
对于 DAL,您可以使用实体框架 4。可以手动封装业务逻辑。
For the DAL, you could use Entity Framework 4. The business logic could be wrapped up by hand.
看看 FluentAdo.net。您可以将它与所有旧的存储过程一起使用。
但如果你真的想重写你的应用程序,我建议你使用 NHibernate 或 Entity Framework。它们具有几乎相同的功能。
Take a look at fluentAdo.net. You can use it with all your old stored procedures.
But if you really want to rewrite your app, I suggest you to use NHibernate or Entity Framework. They have pretty same set of fetures.