如何将我的Webapi模型与业务层集成 [英] How Do I Integrate My Webapi Model With Busines Layer

查看:186
本文介绍了如何将我的Webapi模型与业务层集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在webapi上写一个服务。我希望通过我想访问我的数据将模型集成到我的业务层。任何人都可以给我解决方案。我正在使用三层架构。

Am writing a service in webapi. i want to integrate models to my business layer through that i want to access my data. can anybody give me the solution for this. am using three tier architecture.

推荐答案

三个撕裂架构很好用,但取决于你的项目有多大。

如果是服务项目并将在内部使用,只需从api层调用数据访问层。



最佳做法是保持业务层,api层,数据层和实体层分开。

如果您需要更多的理解,请告诉我。
Three tear architecture is good to follow, but depends how big is your project.
if it is service project and going to be used internally, just call data access layer from your api layer.

the best practice would be to keep business layer, api layer, data layer and entity layer seperately.
Let me know if you need more understanding.


这篇关于如何将我的Webapi模型与业务层集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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