使用linq的三层架构 [英] three tier architecture using linq

查看:120
本文介绍了使用linq的三层架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hai,


在业务层中写入属性是否必要.
否则我们可以使用get {},set {}来使用属性来编写代码,即使用bl层中的方法直接调用dbml类.

在此先感谢...

hai ,


Is that neccesary to write properties in a bussiness layer..
or else we can we write with out using properties using get{}, set{};i.e directly calling the dbml class using methods in bl layer.

thanks in advance...

推荐答案

任何您想要的...

但是,如果您可以编写属性,则对数据进行任何修改将更加容易.

您永远不会知道,几天后您的业务逻辑发生了变化,您需要修改来自数据层的X的值.

在这种情况下,您必须编写一个新属性.这意味着您需要再次更改Presentation层.

如果您必须使用属性,则只需更改属性的逻辑并保持Presentation层完整,就可以更轻松地处理这种情况.

:)
Whatever you want...

But if you can write properties, it would be easier when any modifications is to be made with data.

You never know, that some days later your business logic changes and you need to modify the value of X coming from Data Layer.

In such a situation, you have to write a new property.. which means you need to change the Presentation layer again.

If you have bound using properties, it would be easier to handle this kind of situation by just changing the logic of the property, and keeping the Presentation layer intact.

:)


这篇关于使用linq的三层架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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