2020年1月8日

触发器

摘要: create trigger trig_inserton studentafter insertasbegin if object_id(N'student_sum',N'U') is null--判断student_sum表是否存在 create table student_sum(stuCoun 阅读全文

posted @ 2020-01-08 16:04 梁惊梦 阅读(150) 评论(0) 推荐(0)

2020年1月7日

多条件存储过程分页

摘要: create database Exam_Week3GOUSE Exam_Week3GOcreate table Classs(ClaID int identity(1001,1),ClassName varchar(100),Counts int)goinsert into Classs valu 阅读全文

posted @ 2020-01-07 09:29 梁惊梦 阅读(167) 评论(0) 推荐(0)

增删改查存储过程

摘要: select * from UserInfo 添加存储过程 if OBJECT_ID('P_add') is not nulldrop proc P_addgocreate proc P_add--参数@UserName varchar(100),@UserPwd varchar(100),@Use 阅读全文

posted @ 2020-01-07 09:28 梁惊梦 阅读(287) 评论(0) 推荐(0)

Dapper多表查询

摘要: public class Book { public int ID; public string Name; public string Description; public BookComment bookComment; public BookPic bookPic; } public cla 阅读全文

posted @ 2020-01-07 09:27 梁惊梦 阅读(642) 评论(0) 推荐(0)

Api跨域

摘要: 自定义webapi的路由规则,控制到action跨域设置:(服务端)webconfig文件中,system.webServer节点下添加 <!--跨域请求:三个配置信息--> <httpProtocol> <customHeaders> <!--响应类型 (值为逗号分隔的一个字符串,表明服务器支持的 阅读全文

posted @ 2020-01-07 09:26 梁惊梦 阅读(179) 评论(0) 推荐(0)

导航