上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: 注意事项记录: 打开“工具”–>“NuGet 包管理器”–>“程序包管理器控制台”. 然后用下面指令: 运行 Add-Migration InitialCreate 来为迁移搭建基架,从而为模型创建一组初始表 运行 Update-Database 以将新迁移应用到数据库 运行 Remove-Migr 阅读全文
posted @ 2018-04-13 10:06 longdb 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 一:MongoDB 简单操作类。这里引用了MongoDB.Driver。 二:控制器类 using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Mong 阅读全文
posted @ 2018-04-05 13:36 longdb 阅读(4411) 评论(1) 推荐(0) 编辑
摘要: 要在MongoDB安装(我安装在D盘)的目录的根目录下,先建data目录,然后data目录下再建db目录(结果:D:\data\db)。 然后cmd进入bin目录,执行.\mongod.exe启动服务器,再开个powershell命令窗口,进入bin目录,执行.\mongo.exe启动客户端。 开始 阅读全文
posted @ 2018-03-16 20:22 longdb 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 以前一直没用成功过SignalR(.net asp),最近几天又参考了对应的文档,最终调成功啦。 开始之前,应该注意: 一定要.Net Core 2.1.0以上的SDK。 VS2017 15.6以上的开发工具。 SignalR.js(该js文件可以通过npm下载。指令:npm install @as 阅读全文
posted @ 2018-03-15 21:40 longdb 阅读(7749) 评论(23) 推荐(1) 编辑
摘要: 参考地址:https://docs.microsoft.com/zh-cn/ef/core/get-started/aspnetcore/new-db Add-Migration myfirstcode 报错:The property 'MessageModel.Data' could not be 阅读全文
posted @ 2018-03-11 20:07 longdb 阅读(583) 评论(0) 推荐(0) 编辑
摘要: Css: Html: 效果: 阅读全文
posted @ 2017-12-15 20:58 longdb 阅读(678) 评论(0) 推荐(0) 编辑
摘要: Css: Html: 效果: 阅读全文
posted @ 2017-12-15 19:59 longdb 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 日志: 2017-12-14 12:33:17.53 服务器 A self-generated certificate was successfully loaded for encryption.2017-12-14 12:33:17.55 服务器 错误: 26024,严重性: 16,状态: 1。 阅读全文
posted @ 2017-12-14 13:36 longdb 阅读(3652) 评论(0) 推荐(0) 编辑
摘要: 用Viso画的UML。 阅读全文
posted @ 2017-11-14 21:13 longdb 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 1:[HttpGet] ①:get方法之无参数。 Client,Ajax调用。 ②:get方法之基础参数。 Client,Ajax调用。 ③:get方法之实体参数。 Client,Ajax调用。 ④:get方法之实体参数转换成JSon。 Client,Ajax调用。 2:[HttpPost] ①:A 阅读全文
posted @ 2017-11-11 23:59 longdb 阅读(4141) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页