摘要: MongoDB是一个基于分布式文件存储 [1] 的数据库。由C++语言编写。旨在为WEB应用提供可扩展的高性能数据存储解决方案。 MongoDB是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库当中功能最丰富,最像关系数据库的。它支持的数据结构非常松散,是类似json的bson格式,因此可 阅读全文
posted @ 2020-07-25 08:53 奇怪问题 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 区别: 1,ADO.Net是开发人员自己select、update等写sql语句,来实现对数据库的增删改查等操作;采用EF进行开发操作数据库的时候,只需要操作对象,这样做使开发更方便,此时可以让开发人员使用C#的语法,来完成对数据库进行操作,完全的面向对象思想。2,ADO.Net对内存消耗较小;而E 阅读全文
posted @ 2020-07-24 15:13 奇怪问题 阅读(3262) 评论(0) 推荐(0) 编辑
摘要: 一、什么是EF? 实体架构(Entity Framework)是微软以来ADO.Net为基础开发出来的对象关系映射(ORM)解决方案,它解决了对象持久化问题,将程序员从编写麻烦的SQL语句中解放出来。 优点: 支持多种数据库(Microsoft SQL Server、Oracle和DB2等); 强劲 阅读全文
posted @ 2020-07-24 11:16 奇怪问题 阅读(240) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 事务执行多条sql语句添加 /// </summary> /// <param name="SQLStringList"></param> /// <returns></returns> public int ExecuteSqlTran(List<String> 阅读全文
posted @ 2020-06-27 14:53 奇怪问题 阅读(383) 评论(0) 推荐(0) 编辑
摘要: <input id="checkAll" type="checkbox" /> <tbody id="tb"> <input type="checkbox" value=" '+ item.id + ' "/> </tbody> //复选框全选 $("#checkAll").click(functi 阅读全文
posted @ 2020-06-22 09:33 奇怪问题 阅读(261) 评论(0) 推荐(0) 编辑
摘要: **个人项目所建的表,可根据实际情况更改表数据 ++++++++++++++++存储过程查询分页+++++++++++++++++++++++++++++++++++--if(exists(select * from sys.objects where name='proc_UserShowPage 阅读全文
posted @ 2020-06-18 20:02 奇怪问题 阅读(203) 评论(0) 推荐(0) 编辑
摘要: create proc SP_Pagu(@pageIndex int,@pageSize int,@strWhere nvarchar(2000),@rowCount int out)asbegin declare @strSql nvarchar(3000); declare @countSql 阅读全文
posted @ 2020-06-10 13:54 奇怪问题 阅读(135) 评论(0) 推荐(0) 编辑
摘要: ****项目引用一个JWT帮助类 接口类 public interface IBusiness { /// <summary> /// 登录 根据用户名和密码查询用户所有信息 /// </summary> /// <param name="model"></param> /// <returns>< 阅读全文
posted @ 2020-06-10 13:49 奇怪问题 阅读(277) 评论(0) 推荐(0) 编辑
摘要: namespace IOI_API.Controllers{ //获取路径 [Route("api/[controller]/[action]")] [ApiController] public class DefaultController : ControllerBase { private I 阅读全文
posted @ 2020-06-09 14:19 奇怪问题 阅读(470) 评论(0) 推荐(0) 编辑
摘要: // 显示 $.ajax({ url: "https://localhost:44387/api/控制器名/方法名", dataType: "json", type: "get", success: function (data) { $.each(data, function (index, it 阅读全文
posted @ 2020-06-09 14:11 奇怪问题 阅读(359) 评论(0) 推荐(0) 编辑