随笔分类 -  .NET

Win10下windows mobile device center设备中心连接不上无法启动
摘要:微软Win10自动更细补丁后windows mobile设备中心就无法启动了 需要重新启动相关的服务并授予 本机登录用户 权限 1.点击屏幕左下角“开始”图标,点击“运行”,在弹出的输入框中输入“services.msc”按下回车键。 2.在弹出的界面中,找到“基于Windows Mobile 20 阅读全文
posted @ 2019-01-17 11:38 邢帅杰 阅读(6124) 评论(0) 推荐(0)
winform使用PrintDocument控件打印以及oledb驱动
摘要:代码,需要加入的控件:PrintDocument、PageSetupDialog、PrintDialog、PrintPreviewDialog、BackgroundWorker,控件的Document属性要指定为PrintDocument控件的id。导入Excel用的是12.0的驱动,需要下载:ht 阅读全文
posted @ 2019-01-04 12:34 邢帅杰 阅读(861) 评论(0) 推荐(0)
下载网络资源-带下载进度
摘要:带进度 http://t.zoukankan.com/h82258652-p-10950580.html使用ConfigureAwait(false)的主要功能是提高异步方法的性能和避免潜在的死锁问题。当知道在异步方法中不需要恢复到原始的上下文时,使用ConfigureAwait(false)可以避 阅读全文
posted @ 2018-12-29 12:58 邢帅杰 阅读(155) 评论(0) 推荐(0)
VSCode的使用
摘要:前后端分离的,先打开vs,打开你的项目,在项目根目录中找到.vs文件加,找到.vs\config\applicationhost.config,然后打开找到你项目的IIS Express配置,例如:<site name="TestPro.Web" id="2"> <application path= 阅读全文
posted @ 2018-12-21 17:45 邢帅杰 阅读(921) 评论(0) 推荐(0)
ABP框架提示框,客户端提示,脚本提示
摘要:abp.message.info('some info message', 'some optional title');abp.message.success('some success message', 'some optional title');abp.message.warn('some 阅读全文
posted @ 2018-11-01 15:58 邢帅杰 阅读(1054) 评论(0) 推荐(0)
ABP框架 配置权限、本地语言文件、左侧菜单项、登录
摘要:1.Framework.Core》Authorization》PermissionNames.cs 这里新增权限项 namespace Framework.Authorization { public static class PermissionNames { public const strin 阅读全文
posted @ 2018-11-01 10:46 邢帅杰 阅读(1057) 评论(0) 推荐(0)
上传图片到第三方服务器,将文件转换成byte[]数组
摘要:代码 /// <summary> /// 上传图片到第三方服务器 /// </summary> /// <param name="filePath"></param> /// <param name="picNo"></param> /// <returns></returns> public st 阅读全文
posted @ 2018-10-31 18:02 邢帅杰 阅读(932) 评论(0) 推荐(0)
xml转化为Dictionary
摘要:代码 阅读全文
posted @ 2018-10-31 17:59 邢帅杰 阅读(617) 评论(0) 推荐(0)
ABP框架使用Mysql数据库
摘要:参考文档:https://github.com/ABPFrameWorkGroup/AbpDocument2Chinese/blob/master/Markdown/Abp/9.4ABP%E5%9F%BA%E7%A1%80%E8%AE%BE%E6%96%BD%E5%B1%82-%E9%9B%86%E 阅读全文
posted @ 2018-10-29 12:09 邢帅杰 阅读(1310) 评论(0) 推荐(0)
将文件转换成byte[]数组
摘要:代码 /// <summary> /// 将文件转换成byte[] 数组 /// </summary> /// <param name="fileUrl">文件路径文件名称</param> /// <returns>byte[]</returns> public byte[] AuthGetFile 阅读全文
posted @ 2018-10-17 12:48 邢帅杰 阅读(1329) 评论(0) 推荐(0)
NuGet打包,IIS自动发布
摘要:NuGet学习笔记(1)——初识NuGet及快速安装使用 https://kb.cnblogs.com/page/143190/ NuGet学习笔记(2)——使用图形化界面打包自己的类库 https://kb.cnblogs.com/page/143191/ NuGet学习笔记(3)——搭建属于自己 阅读全文
posted @ 2018-09-06 10:41 邢帅杰 阅读(531) 评论(0) 推荐(1)
微信小程序解密
摘要:获取OpenId和SessionKey code 阅读全文
posted @ 2018-08-15 15:28 邢帅杰 阅读(187) 评论(0) 推荐(0)
EntityFramework的linq扩展where
摘要:代码 Expression<Func<TSource, bool>> predicate = c=>c.Id==1; predicate = predicate.And(c=>c.Name=="jay"); 阅读全文
posted @ 2018-08-09 16:13 邢帅杰 阅读(192) 评论(0) 推荐(0)
RestSharp发送请求得到Json数据
摘要:NUGET安装:RestSharp code: public string Post(string url, string content) { string contentType = "application/json"; //Content-Type try { var client = ne 阅读全文
posted @ 2018-08-07 11:33 邢帅杰 阅读(5684) 评论(0) 推荐(0)
ABP框架基本使用
摘要:文档:https://docs.abp.io/zh-Hans/abpabp默认管理员:admin,密码:123qwe,这是写死的,xxx.Core\Authorization\Users\User.cs 行数:101.先在Core项目中建立模型Models》Model.cs/ModelManager 阅读全文
posted @ 2018-08-02 17:39 邢帅杰 阅读(993) 评论(0) 推荐(0)
socket
摘要:https://blog.csdn.net/smartsmile2012/article/details/71172450 阅读全文
posted @ 2018-08-01 10:02 邢帅杰 阅读(94) 评论(0) 推荐(0)
使用SignalR进行实时通信
摘要:http://www.cnblogs.com/lonelyxmas/tag/%E4%B8%80%E6%AD%A5%E4%B8%80%E6%AD%A5%E5%AD%A6%E4%B9%A0SignalR%E8%BF%9B%E8%A1%8C%E5%AE%9E%E6%97%B6%E9%80%9A%E4%BF 阅读全文
posted @ 2018-07-27 15:16 邢帅杰 阅读(206) 评论(0) 推荐(0)
产生固定长度的数字和字母随机数
摘要:code 阅读全文
posted @ 2018-07-24 17:12 邢帅杰 阅读(197) 评论(0) 推荐(0)
migrantion
摘要:Enable-Migrations - ConfigurationTypeName namespace.DbContext Enable-Migrations命令创建了一个新的Migrations文件夹,并在该目录下创建了Configuration.cs文件,其中的Seed方法是向表中插入初始化数据 阅读全文
posted @ 2018-07-19 21:26 邢帅杰 阅读(190) 评论(0) 推荐(0)