亚音速asp.net 3层架构对象模型

时间:2021-04-30 07:31:29

i've been using subsonic for two years now (actually i'm using 2.1 version in my projects right now).

我已经使用亚音速两年了(实际上我现在在我的项目中使用2.1版本)。

I'd like to structure a new project this way: presentation layer + business layer + data layer with an object model, vertical to the 3 layers, that models business entities. The matter is that subsonic, through the db reading, create entities with crud method inside.

我想用这种方式构建一个新项目:表示层+业务层+带有对象模型的数据层,垂直于3层,为业务实体建模。问题在于亚音速,通过数据库读取,在内部创建带有crud方法的实体。

Is it possible to split crud method between entities? thx

是否有可能在实体之间拆分crud方法?谢谢

1 个解决方案

#1


Sure - have a peak: http://blog.wekeroad.com/subsonic/subsonic-writing-decoupled-testable-code-with-subsonic-2-1/

当然 - 有一个高峰:http://blog.wekeroad.com/subsonic/subsonic-writing-decoupled-testable-code-with-subsonic-2-1/

#1


Sure - have a peak: http://blog.wekeroad.com/subsonic/subsonic-writing-decoupled-testable-code-with-subsonic-2-1/

当然 - 有一个高峰:http://blog.wekeroad.com/subsonic/subsonic-writing-decoupled-testable-code-with-subsonic-2-1/