码迷,mamicode.com
首页 >  
搜索关键字:returns    ( 2350个结果
netcore3.0 webapi集成Swagger 5.0,Swagger使用
Swagger使用 1、描述 Swagger 是一个规范和完整的框架,用于生成、描述、调用和可视化 RESTful 风格的 Web 服务。 作用: 1.接口的文档在线自动生成。 2.功能测试 本文转自:https://www.cnblogs.com/datacool/p/11805585.html ...
分类:Windows程序   时间:2019-11-13 15:55:24    阅读次数:108
go html 转字符串存mysql表中
func HTMLMarshal(str string) (returnStr string) { bf := bytes.NewBuffer([]byte{}) jsonEncoder := json.NewEncoder(bf) jsonEncoder.SetEscapeHTML(false) ...
分类:数据库   时间:2019-11-12 10:54:12    阅读次数:104
SQL实用技巧:如何分割字符串
create function f_split(@c varchar(2000),@split varchar(2)) returns @t table(col varchar(20)) as begin while(charindex(@split,@c)<>0) begin insert @t( ...
分类:数据库   时间:2019-11-09 21:54:00    阅读次数:74
postgresql:给表添加触发器
触发器功能:向user表中插入一条数据,如果表中没用数据,则字段created_by必须为空;表中有数据则created_by必须不为空. 新建储存过程函数; CREATE OR REPLACE FUNCTION public.onaddfirst() RETURNS trigger LANGUAG ...
分类:数据库   时间:2019-11-07 09:23:05    阅读次数:216
Json序列化Newtonsoft.Json版本需要7.0以上
/// <summary> /// 将DataTable 转换成JSon字符串 /// </summary> /// <param name="table"></param> /// <returns></returns> public static string DataTableToJsonWi ...
分类:Web程序   时间:2019-11-06 13:00:02    阅读次数:110
Sqlserver表值函数来获取逗号分隔的ID
其功能为: 将字符串如'1,2,3,4,5,6' 拼接成SQL里面的id 1:使用: select * from Student where id IN( SELECT * FROM dbo.F_SPLIT('1,2,3,4',',') ) 2:定义表值函数: USE [CRM_CN2] GO /* ...
分类:数据库   时间:2019-11-06 00:48:34    阅读次数:123
DataGrip软件Mysql连接失败Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually.
Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually. 很显然,翻译成中文就是时区错误,MySQL默认的时区是UTC时区,比北京时间晚8个小时。 在mysql的 ...
分类:数据库   时间:2019-11-05 23:23:57    阅读次数:537
asp.net Base64加解密
1.前端 JS: 使用 2.后台 帮助类: public static class Base64Helper { /// <summary> /// URL的操作类 /// </summary> static System.Text.Encoding encoding = System.Text.E ...
分类:Web程序   时间:2019-11-04 21:43:04    阅读次数:119
winform使用钩子限制windows热键
新增类KeybordHookProc 添加键盘按键触发事件 键盘钩子的使用 /// <summary> /// 键盘钩子 /// </summary> KeyBordHook _keyBordHook; ...
分类:Windows程序   时间:2019-11-04 18:08:20    阅读次数:133
.NET设计模式-单例模式
Singleton(单例模式) 意图:保证一个类仅有一个实例,并提供一个访问它的全局访问点。 主要解决:一个全局使用的类频繁地创建与销毁。 ...
分类:Web程序   时间:2019-11-03 15:08:54    阅读次数:98
2350条   上一页 1 ... 30 31 32 33 34 ... 235 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!