博客园 - 苏上话
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=179320
2022-07-19T02:42:42Z
苏上话
https://www.cnblogs.com/su-king/
feed.cnblogs.com
https://www.cnblogs.com/su-king/p/14143994.html
C#调用webservice 不用默认配置文件 直接在构造函数配置地址 - 苏上话
ClientBase(Binding binding, EndpointAddress remoteAddress) 这个重载更好用,都不用填名称 例如 获取随机汉字 http://www.webxml.com.cn/WebServices/RandomFontsWebService.asmx Se
2020-12-16T07:05:00Z
2020-12-16T07:05:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】ClientBase(Binding binding, EndpointAddress remoteAddress) 这个重载更好用,都不用填名称 例如 获取随机汉字 http://www.webxml.com.cn/WebServices/RandomFontsWebService.asmx Se <a href="https://www.cnblogs.com/su-king/p/14143994.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/13433006.html
SQL 字符串分隔函数 - 苏上话
查询某个 逗号分隔的字段 select * from AccInformation a where '启用' in( select * from dbo.fnSplitStr(cCaption,',')) select * from dbo.fnSplitStr('1,2,3',',') CREAT
2020-08-04T06:22:00Z
2020-08-04T06:22:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】查询某个 逗号分隔的字段 select * from AccInformation a where '启用' in( select * from dbo.fnSplitStr(cCaption,',')) select * from dbo.fnSplitStr('1,2,3',',') CREAT <a href="https://www.cnblogs.com/su-king/p/13433006.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/13405518.html
查询Sqlserver数据库死锁的一个存储过程 - 苏上话
使用sqlserver作为数据库的应用系统,都避免不了有时候会产生死锁, 死锁出现以后,维护人员或者开发人员大多只会通过sp_who来查找死锁的进程,然后用sp_kill杀掉。利用sp_who_lock这个存储过程,可以很方便的知道哪个进程出现了死锁,出现死锁的问题在哪里. 创建sp_who_loc
2020-07-30T10:11:00Z
2020-07-30T10:11:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】使用sqlserver作为数据库的应用系统,都避免不了有时候会产生死锁, 死锁出现以后,维护人员或者开发人员大多只会通过sp_who来查找死锁的进程,然后用sp_kill杀掉。利用sp_who_lock这个存储过程,可以很方便的知道哪个进程出现了死锁,出现死锁的问题在哪里. 创建sp_who_loc <a href="https://www.cnblogs.com/su-king/p/13405518.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/13391994.html
C# 守护进程 Windows服务 启动 exe - 苏上话
使用Process 启动发现 没有界面 界面办法如下 主要用到 Cjwdev.WindowsApi.dll 下载地址: 链接:https://pan.baidu.com/s/1R2AFVxLArZCkwCumlUxN1w 密码:4qhn try { //appStartPath = "程序路径";
2020-07-28T08:43:00Z
2020-07-28T08:43:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】使用Process 启动发现 没有界面 界面办法如下 主要用到 Cjwdev.WindowsApi.dll 下载地址: 链接:https://pan.baidu.com/s/1R2AFVxLArZCkwCumlUxN1w 密码:4qhn try { //appStartPath = "程序路径"; <a href="https://www.cnblogs.com/su-king/p/13391994.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/13140489.html
SQLSERVER 存储过程中的事务 - 苏上话
CREATE PROCEDURE ProcedureNamme AS BEGIN SET NOCOUNT ON; BEGIN TRY 开始捕捉异常 BEGIN TRAN 开始事务 UPDATE A SET ... 9 ... INSERT INTO ...11 COMMIT TRAN 提交事务 EN
2020-06-16T05:38:00Z
2020-06-16T05:38:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】CREATE PROCEDURE ProcedureNamme AS BEGIN SET NOCOUNT ON; BEGIN TRY 开始捕捉异常 BEGIN TRAN 开始事务 UPDATE A SET ... 9 ... INSERT INTO ...11 COMMIT TRAN 提交事务 EN <a href="https://www.cnblogs.com/su-king/p/13140489.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12767105.html
EFCore连接Mysql DBFirst模式生成model - 苏上话
一:创建EF的类库,同时将此项目设置为启动项(为Scaffold-DbContext -tables指令使用),同时安装2个包 ①Microsoft.EntityFrameworkCore.Tools ②Pomelo.EntityFrameworkCore.MySql (这个是第三方的ef mysq
2020-04-24T06:07:00Z
2020-04-24T06:07:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】一:创建EF的类库,同时将此项目设置为启动项(为Scaffold-DbContext -tables指令使用),同时安装2个包 ①Microsoft.EntityFrameworkCore.Tools ②Pomelo.EntityFrameworkCore.MySql (这个是第三方的ef mysq <a href="https://www.cnblogs.com/su-king/p/12767105.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12736065.html
如何开始一个vue +element-ui 项目 - 苏上话
npm install --registry=https://registry.npm.taobao.org 1、通过cnpm使用npm install -g cnpm --registry=https://registry.npm.taobao.org配置淘宝安装镜像 加快速度 2、全局安装 下载
2020-04-20T01:55:00Z
2020-04-20T01:55:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】npm install --registry=https://registry.npm.taobao.org 1、通过cnpm使用npm install -g cnpm --registry=https://registry.npm.taobao.org配置淘宝安装镜像 加快速度 2、全局安装 下载 <a href="https://www.cnblogs.com/su-king/p/12736065.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12672748.html
ASP.NET Core WebAPI中使用JWT Bearer认证和授权 - 苏上话
1、添加包 Microsoft.AspNetCore.Authentication.JwtBearer 2、在Startup类的ConfigureServices方法里面注入服务: public void ConfigureServices(IServiceCollection services)
2020-04-10T04:53:00Z
2020-04-10T04:53:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】1、添加包 Microsoft.AspNetCore.Authentication.JwtBearer 2、在Startup类的ConfigureServices方法里面注入服务: public void ConfigureServices(IServiceCollection services) <a href="https://www.cnblogs.com/su-king/p/12672748.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12671849.html
ASP.NET Core 3.1使用Swagger - 苏上话
1、添加Swagger 直接在NuGet里面搜索Swashbuckle.AspNetCore包进行安装: 2、添加服务 在Startup类的ConfigureServices方法里面注入服务: 验证授权和 注释信息 public void ConfigureServices(IServiceColl
2020-04-10T02:41:00Z
2020-04-10T02:41:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】1、添加Swagger 直接在NuGet里面搜索Swashbuckle.AspNetCore包进行安装: 2、添加服务 在Startup类的ConfigureServices方法里面注入服务: 验证授权和 注释信息 public void ConfigureServices(IServiceColl <a href="https://www.cnblogs.com/su-king/p/12671849.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12667639.html
Vue+webpack+vue-router+nginx部署 - 苏上话
1、把webpack生成的静态文件copy到服务器就行了 2、vue-router的配置 //创建路由 export default new Router({ // mode:'history', base: '/project-name/', routes: constantRouterMap }
2020-04-09T08:13:00Z
2020-04-09T08:13:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】1、把webpack生成的静态文件copy到服务器就行了 2、vue-router的配置 //创建路由 export default new Router({ // mode:'history', base: '/project-name/', routes: constantRouterMap } <a href="https://www.cnblogs.com/su-king/p/12667639.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12665058.html
NodeJs npm webpack - 苏上话
背景介绍 什么是npm? npm(node package manager)是nodejs的包管理器,用于node插件管理(包括安装、卸载、管理依赖等), NPM是随同NodeJS一起安装的包管理工具,能解决NodeJS代码部署上的很多问题,它是 Node 获得成功的重要原因之一。常见的使用场景有以
2020-04-09T02:21:00Z
2020-04-09T02:21:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】背景介绍 什么是npm? npm(node package manager)是nodejs的包管理器,用于node插件管理(包括安装、卸载、管理依赖等), NPM是随同NodeJS一起安装的包管理工具,能解决NodeJS代码部署上的很多问题,它是 Node 获得成功的重要原因之一。常见的使用场景有以 <a href="https://www.cnblogs.com/su-king/p/12665058.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12610682.html
C# 中使用正则表达式验证电话号码、手机号、身份证号 - 苏上话
验证电话号码的主要代码如下: public bool IsTelephone(string str_telephone) { return System.Text.RegularExpressions.Regex.IsMatch(str_telephone,@"^(\d{3,4}-)?\d{6,8}
2020-04-01T02:05:00Z
2020-04-01T02:05:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】验证电话号码的主要代码如下: public bool IsTelephone(string str_telephone) { return System.Text.RegularExpressions.Regex.IsMatch(str_telephone,@"^(\d{3,4}-)?\d{6,8} <a href="https://www.cnblogs.com/su-king/p/12610682.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12599771.html
IIS发布.NET Core应用程序 - 苏上话
概述 与ASP.NET时代不同,ASP.NET Core不再是由IIS工作进程(w3wp.exe)托管,而是使用自托管Web服务器(Kestrel)运行, IIS则是作为反向代理的角色转发请求到Kestrel不同端口的ASP.NET Core程序中, 配置文件和过程都会由些许调整,中间最重要的角色便
2020-03-30T09:14:00Z
2020-03-30T09:14:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】概述 与ASP.NET时代不同,ASP.NET Core不再是由IIS工作进程(w3wp.exe)托管,而是使用自托管Web服务器(Kestrel)运行, IIS则是作为反向代理的角色转发请求到Kestrel不同端口的ASP.NET Core程序中, 配置文件和过程都会由些许调整,中间最重要的角色便 <a href="https://www.cnblogs.com/su-king/p/12599771.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12576055.html
C# 操作config配置文件信息 - 苏上话
以下是读取配置文件信息方法 引用程序集System.Configuration public class config { public static string Token = ""; public static string user = GetAppConfig("User"); //指定c
2020-03-26T10:01:00Z
2020-03-26T10:01:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】以下是读取配置文件信息方法 引用程序集System.Configuration public class config { public static string Token = ""; public static string user = GetAppConfig("User"); //指定c <a href="https://www.cnblogs.com/su-king/p/12576055.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12575096.html
Oracle"TNS监听程序找不到符合协议堆栈要求的可用处理程序"解决方案 - 苏上话
服务器上某个数据库出现' ORA-12516: TNS: 监听程序找不到符合协议堆栈要求的可用处理程'错误 根本原因就是Oracle的process和session已经达到了甚至超过了最大值,解决办法如下: 查看process和session的参数和占用值: select value from v$
2020-03-26T08:10:00Z
2020-03-26T08:10:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】服务器上某个数据库出现' ORA-12516: TNS: 监听程序找不到符合协议堆栈要求的可用处理程'错误 根本原因就是Oracle的process和session已经达到了甚至超过了最大值,解决办法如下: 查看process和session的参数和占用值: select value from v$ <a href="https://www.cnblogs.com/su-king/p/12575096.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12568387.html
C# Entityframework - 苏上话
https://blog.csdn.net/qq_34720759/article/details/78443019 https://www.cnblogs.com/hanwenhuazuibang/archive/2013/04/11/3015773.html http://www.mybbchi
2020-03-25T10:17:00Z
2020-03-25T10:17:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】https://blog.csdn.net/qq_34720759/article/details/78443019 https://www.cnblogs.com/hanwenhuazuibang/archive/2013/04/11/3015773.html http://www.mybbchi <a href="https://www.cnblogs.com/su-king/p/12568387.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12567742.html
sql timestamp 的应用 - 苏上话
timestamp 通常用作给表行加版本戳的机制。 timestamp 公开数据库中自动生成的唯一二进制数字的数据类型。 存储大小为 8 个字节。 timestamp 数据类型只是递增的数字,不保留日期或时间。 每个数据库都有一个计数器,当对数据库中包含 timestamp 列的表执行插入或更新操作
2020-03-25T09:54:00Z
2020-03-25T09:54:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】timestamp 通常用作给表行加版本戳的机制。 timestamp 公开数据库中自动生成的唯一二进制数字的数据类型。 存储大小为 8 个字节。 timestamp 数据类型只是递增的数字,不保留日期或时间。 每个数据库都有一个计数器,当对数据库中包含 timestamp 列的表执行插入或更新操作 <a href="https://www.cnblogs.com/su-king/p/12567742.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12554116.html
C# log4net - 苏上话
<?xml version="1.0" encoding="utf-8" ?> <configuration> <!-- This section contains the log4net configuration settings --> <log4net> <!-- Setup the roo
2020-03-23T10:45:00Z
2020-03-23T10:45:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】<?xml version="1.0" encoding="utf-8" ?> <configuration> <!-- This section contains the log4net configuration settings --> <log4net> <!-- Setup the roo <a href="https://www.cnblogs.com/su-king/p/12554116.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12554082.html
dapper - 苏上话
支持framework4.0 /* License: http://www.apache.org/licenses/LICENSE-2.0 Home page: http://code.google.com/p/dapper-dot-net/ Note: to build on C# 3.0 + .
2020-03-23T10:38:00Z
2020-03-23T10:38:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】支持framework4.0 /* License: http://www.apache.org/licenses/LICENSE-2.0 Home page: http://code.google.com/p/dapper-dot-net/ Note: to build on C# 3.0 + . <a href="https://www.cnblogs.com/su-king/p/12554082.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/su-king/p/12207080.html
C# 查询数据库 时间格式与数据库不一致 - 苏上话
在C#服务器中,使用Date.Now.ToString()生成的字符串时间,如果不指定字符串格式,C#会按照系统语言输出不同的字符串格式,如: a. 美国: 06/01/2019 01:59:00 PM b.中国: 2019/06/01 13:59:00 解决方案 使用全局配置模式:globaliz
2020-01-17T10:14:00Z
2020-01-17T10:14:00Z
苏上话
https://www.cnblogs.com/su-king/
【摘要】在C#服务器中,使用Date.Now.ToString()生成的字符串时间,如果不指定字符串格式,C#会按照系统语言输出不同的字符串格式,如: a. 美国: 06/01/2019 01:59:00 PM b.中国: 2019/06/01 13:59:00 解决方案 使用全局配置模式:globaliz <a href="https://www.cnblogs.com/su-king/p/12207080.html" target="_blank">阅读全文</a>