阅读背景:

在ASP.NET MVC应用程序中放置数据操作和业务逻辑代码的位置?

来源:互联网 

Having watched samples from Rob Conery's Kona application, I see that he is using two things with IoC - ISession, where he has data layer code and Services, where he has some additional business logic that we need to perform when manipulating data in datastore. For instance, we might not just add a record to the DB but also change properties of another record, increase some counts, take something back, etc. We need to put that additional code somewehere and he puts it in those services.Having watched samples from Rob Conery's Kona a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: