![]() |
1
2
We are using quite similar approach as you describe with DTOs and BOs. 我们很少有公共接口,要么是非常基本的接口(例如,获取businessid的接口),要么是特定于某个实现的接口,例如,可以在客户机或服务器上进行计算。 We actually just copy properties. They are usually trivial enough that it is not worth to share code. At the end, more code is different then similar.
Even if many of the properties are the same on both classes, there is actually not much to share. |
![]() |
2
0
我通常创建POCO,并通过我的所有层使用它们——数据访问Business to UI。在业务层中,我有一些经理,他们来回地重复POCO。我们将研究实体框架和/或NHibernate,因此我不确定这将导致我们。 是的,我们写了一些额外的代码,但是我们保持每件事都很简单。我们正在使用MVC作为我们的用户界面,对我来说,这是一个天赐之物,与大部分的webforms相比,我再也不会回去了。现在我们的战斗应该是将JSON发送到Ajax回调或使用局部视图,后者是我们大多数时间所做的。 Are we correct? Maybe not but it works for us. So many choices, so little time. |
![]() |
Ehsan Akbar · 当请求被激发时,WCF请求时间会增加 7 年前 |
![]() |
Gans · 具有多操作合约的WCF Rest服务 7 年前 |
![]() |
Moelgaard · NLog中的IIS应用程序名称。配置 7 年前 |
![]() |
Kerwen · WCF服务调用异步函数 7 年前 |