自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 收藏
  • 关注

转载 .net core Nlog

<?xml version="1.0" encoding="utf-8" ?><nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"      autoReload="true" 

2019-01-14 16:31:07 257

原创 mysql 时间查询

//查询最近6个月SELECT * FROM Receipt WHERE ReceiptData between date_sub(now(),interval 6 month) and now() ORDER BY ReceiptData DESC;//查询上一个月SELECT * FROM Memo WHERE date_format(CreaterTime,'%Y-%m')=da...

2018-12-28 10:17:31 122

原创 C#

using System;using System.Collections.Generic;using System.Configuration;using System.Drawing;using System.Drawing.Imaging;using System.IO;using System.Linq;using System.Text;using System.Thr...

2018-12-20 21:30:11 142

原创 IO 序列化

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Web.Script.Serialization;//System.Web.Extensionsusing Newtonsoft.Json...

2018-12-20 21:26:31 155

转载 docker 部署.net core

使用脚本安装 Docker(1)安装docker sudo yum install docker(2)启动dockersystemctl  start docker.service(3)配置开机启动systemctl enable docker.service(4)查看docker版本信息docker version(5).net core 创建 Docke...

2018-12-16 21:40:47 14154

转载 docker安装

Centos7上安装dockerDocker从1.13版本之后采用时间线的方式作为版本号,分为社区版CE和企业版EE。社区版是免费提供给个人开发者和小型团体使用的,企业版会提供额外的收费服务,比如经过官方测试认证过的基础设施、容器、插件等。社区版按照stable和edge两种方式发布,每个季度更新stable版本,如17.06,17.09;每个月份更新edge版本,如17.09,17....

2018-12-16 21:37:59 171

原创 C# 反射

Assembly ass = Assembly.LoadFrom("TestReflex.dll"); Type[] mytypes = ass.GetTypes(); Type userinfo = null; Console.WriteLine("列出程序集中的所有类型"); ...

2018-12-13 20:37:15 81

原创 Linux 系统监听MySQL sql 执行

SET GLOBAL general_log = 'ON';SHOW VARIABLES LIKE "general_log%";tail -f /usr/local/var/mysql/MacBook-Pro-Marcin-3.log

2018-08-17 10:36:42 923

转载 EF 数据迁移

EF code First数据迁移学习笔记准备工作1.新建一个控制台项目, 在"程序包管理控制台"执行 Install-package EntityFramework  //安装EF环境2.在项目下新建类(Paper),也就是code first中的code。建好之后,Ctrl+Shift+B生成项目。(不生成的话,会出现控制器找不到类型或者其他报错)3.在app.config...

2018-08-16 10:51:22 4323

翻译 .net core EF mysql

.Net Core 2.0 使用EF连接MySQL数据库MySQL官方mysql ef provider正在preview 阶 段可以选择下载MySQL官方的,也可以使用第三方的NuGet包来进行安装MySQL官方mysql ef provider:Install-Package MySql.Data.EntityFrameworkCore或者使用第三方:Inst...

2018-08-14 18:00:15 640 2

转载 Host 'XXX' is not allowed to connect to this MySQL server解决方案

解决此问题有以下2个方法:localhost改成%1.进入mysql的BIN目录注:root为管理员用户名,password为用户root的密码: mysql -u root -p passwordmysql>use mysql;mysql>update user set host ='%'where user ='root' and host ='loca...

2018-08-14 17:52:40 2457

原创 .net core EF db first

 nuget 命令添加 install-package Microsoft.EntityFrameworkCore  install-package Microsoft.EntityFrameworkCore.SqlServer install-package Microsoft.EntityFrameworkCore.Tools2、执行这一命令。后面是数据库连接字符串(根据数据库...

2018-08-14 16:45:35 361

原创 .net core 后台执行

后台运行         nohup 你需要执行得命令 &     2.想要关闭分两步:       ps aux        查看项目进程id所运行的进程号     3.kill 进程号,关闭进程...

2018-08-14 10:01:34 5066 2

原创 .net core 2.0 CentOS 部署

第一步:Add the dotnet product feed(添加dotnet产品)To start installing .NET, you'll need to register the Microsoft signature key and add the Microsoft Product feed. This only needs to be done once per machi...

2018-08-14 09:57:12 168

原创 支付宝 微信

1.C#  支付宝Sdk 在使用私钥的时候要从文件读取,2.验签支付宝公钥要写成字符串读取,获取自己读文件也行,3,支付宝退款也有异步消息,业务逻辑的时候要判断,4,支付宝的退款接口也是,一个只能支持文件,一个必须是字符串,sdk写的很锤子啊,调到坑里很浪费时间1,C# 微信 微信感觉还可以,xml 处理还方便,最恶心的是退款证书在vs上很方便,部署iis 记得

2017-12-07 18:18:09 1234

原创 websocket 心得

1. iis 8.0 以上才能支持  服务器系统至少2012R2  2. 测试的时候本地测试就行了,用外网映射工具会出问题3.管道模型要用集成模式,经典模式用不了,亲测

2017-12-07 18:09:46 193

原创 T-sql创建数据库

--指向要操作的数据库use mastergo--创建数据库if exists(select * from sysdatabases where name='DJ')drop database DJgocreate database DJon primary --数据文件(  name='DJ_data',--数据库的逻辑文件名,必须唯一  filena

2017-10-18 13:56:17 1842

转载 C# Memcached 使用

Memcached 使用 及.NET客户端调用 (资料整理)memcached安装:============================================================================通过cmd命令行进入到D:\mem\memcached(下载后的解压目录)运行 memcached.exe -d install

2017-09-29 09:52:13 443

原创 webapi 带参数上传图片

public IHttpActionResult getTest2()          {                string id=HttpContext.Current.Request["id"];              string name = HttpContext.Current.Request["name"];              HttpFi

2017-09-27 22:00:27 875

原创 新手微信开发心得

1 所有消息回复的xml  里面的标签都不能有空间

2017-09-27 11:50:15 220

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除