摘要: 一、调试 1、F5开始调试 2、F10逐过程调试 3、F11逐语句调试 二、后端调试 1、SQL Server Profiler 可以通过SQL Server中的工具=》SQL Server Profiler=》连接=》事件选择(可以筛选出自己所需要的关键)=》运行=》找到自己运行后的数据,查看是否 阅读全文
posted @ 2021-07-21 17:18 古之召虎 阅读(577) 评论(0) 推荐(0)
摘要: 一、MVC+EF 不管是MVC 还是EF 都有文件夹 Controllers 下边的文件必须以Controller 结尾 WEBAPI 接口不要使用中文名称 二、Linq 查询 多表联查 Linq 查询 使用方法 var query = from a in db.Students join b in 阅读全文
posted @ 2021-07-20 21:15 古之召虎 阅读(96) 评论(0) 推荐(0)
摘要: 一、HTTP 协议(超文本传输协议) http 协议 版本 1.1 http由来 1960年 http通讯 http原理 URL和URI 区别 Request 请求报文 Response 响应报文 HTTP 状态码(重要) 常用的 200(成功) 500(服务器端错误) 404(URL路径错误) H 阅读全文
posted @ 2021-07-19 20:52 古之召虎 阅读(238) 评论(0) 推荐(0)
摘要: 一、导航属性 1、错误代码: [Table("Job")] public class JobModel { [Key] public int JId { get; set; } public string Type { get; set; } [ForeignKey("CName")] public 阅读全文
posted @ 2021-07-16 20:20 古之召虎 阅读(63) 评论(0) 推荐(0)
摘要: 一、新建Models 中实体类 在类中添加特性,添加特性之前需要引用命名空间 using System.ComponentModel.DataAnnotations;using System.ComponentModel.DataAnnotations.Schema; 添加外键导航:[Foreign 阅读全文
posted @ 2021-07-15 20:54 古之召虎 阅读(97) 评论(1) 推荐(2)
摘要: EF 简单 添加 一、新建Models 中实体类 在类中添加特性,添加特性之前需要引用命名空间 1、类的上边 [Table("表名称")] ​ 2、主键 [Key] [Table("Student")] public class Student { [Key] public int SId { ge 阅读全文
posted @ 2021-07-14 21:03 古之召虎 阅读(64) 评论(0) 推荐(1)