有人可以解释一下Web API C#的架构吗? [英] Can someone please explain the architecture of web API C#?

查看:46
本文介绍了有人可以解释一下Web API C#的架构吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有控制器,模型,上下文,EntitiyFramework和存储库,但我不知道它们是如何连接的。在每个班级写什么?以及在哪里编写LINQ代码。种子在哪里?谢谢



我尝试过:



我有一个项目我需要获取URL的参数并使用web API将其插入数据库

I know there is controller, models, context, EntitiyFramework and repository but I don't know how they are connected. what to write in each of the classes? and where to write the LINQ code. where to seed? Thanks

What I have tried:

I have a project where I need to take the parameters of URL and insert it into database with web API

推荐答案

检查这些:

1. REST和.net Web API简介 - Martin Kearn [ ^ ]

2. 使用ASP.NET Web API构建N层RESTful API(第1部分) - Ibrahim Abdelkareem的博客 [ ^ ]
Check these out:
1. Introduction to REST and .net Web API – Martin Kearn[^]
2. Building N-Tier RESTful API using ASP.NET Web API 2 (Part 1) – Ibrahim Abdelkareem's Blog[^]


这篇关于有人可以解释一下Web API C#的架构吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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