摘要: 首先第一步先实例化MyContext 然后就开始我们的增删改查方法 添加: public int Insert(T t) { db.Set<T>().Add(t); return db.SaveChanges(); } 显示 public DbSet<T> Show() { return db.Se 阅读全文
posted @ 2020-07-08 13:35 niuniude 阅读(241) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> html{ background: #000; color: #666; font-size: 12px; overfl 阅读全文
posted @ 2020-06-19 16:47 niuniude 阅读(108) 评论(0) 推荐(0)
摘要: create proc Proc_Pageing( @pageIndex int,--页码 @pageSize int,--页大小 @CId int,--班级ID @TId int,--教师ID @pageCount int out--总页数,输出参数)asbegin select * from ( 阅读全文
posted @ 2020-06-09 16:01 niuniude 阅读(44) 评论(0) 推荐(0)
摘要: -- 分页存储过程ALTER proc [dbo].[p_pageShow]( @pageSize int, --每页大小 @currentPage int out, --当前页 @houseName nvarchar(50), --房产名称 @totalCount int out, --总记录数 阅读全文
posted @ 2020-06-09 11:14 niuniude 阅读(36) 评论(0) 推荐(1)