上一页 1 ··· 5 6 7 8 9 10 下一页

2018年11月29日

Dapper基础知识二

摘要: 在下刚毕业工作,之前实习有用到Dapper?这几天新项目想用上Dapper,在下比较菜鸟,这块只是个人对Dapper的一种总结。 2,如何使用Dapper? 首先Dapper是支持多种数据库的,当时在学习的时候参考蓝老师的资料https://www.cnblogs.com/lanxiaoke/p/6 阅读全文

posted @ 2018-11-29 21:53 Ssumer 阅读(503) 评论(0) 推荐(0) 编辑

Dapper基础知识一

摘要: 在下刚毕业工作,之前实习有用到Dapper?这几天新项目想用上Dapper,在下比较菜鸟,这块只是个人对Dapper的一种总结。 1,什么是Dapper? Dapper,.NET下的一种ORM框架,什么是ORM呢?ORM是一种对象关系映射的技术。 小白之前参考的资料Dapper初级如何使用https 阅读全文

posted @ 2018-11-29 21:34 Ssumer 阅读(442) 评论(0) 推荐(0) 编辑

2018年11月28日

Dapper Dapper-Extensions

摘要: 之前公司在开发项目的时候有用到过Dapper 仓储 以及IOC Castel 。最近新项目上想使用上这些技术,决定新学习一下。 看了很多资料,发现几个比较容易菜鸟的我理解的,整理下来,找时间好好整理一下。 https://www.jianshu.com/p/c4ca2989d26a https:// 阅读全文

posted @ 2018-11-28 21:04 Ssumer 阅读(299) 评论(0) 推荐(0) 编辑

2018年11月7日

前端压缩图片,前端压缩图片后转换为base64.

摘要: 今天利用一上午研究了一下前端如何将5m左右的照片转换base64大小为 100k以内! 有两个链接:https://www.cnblogs.com/007sx/p/7583202.html :https://www.cnblogs.com/axes/p/4603984.html :https://w 阅读全文

posted @ 2018-11-07 17:30 Ssumer 阅读(886) 评论(0) 推荐(0) 编辑

2018年10月29日

C# 将string 转换为二维码图片,然后转为base64字符串编码 。

摘要: 需在nuget 添加此dll ///content字符串 public static string GetQRCode(string content, int moduleSize = 9) { var encoder = new QrEncoder(ErrorCorrectionLevel.M); 阅读全文

posted @ 2018-10-29 10:09 Ssumer 阅读(2407) 评论(0) 推荐(0) 编辑

2018年10月26日

Js jquery常用的身份证号码 邮箱电话等验证

摘要: 刷了很多博客,https://www.cnblogs.com/hao-1234-1234/p/6636843.html 只有这个比较靠谱。 阅读全文

posted @ 2018-10-26 15:15 Ssumer 阅读(262) 评论(0) 推荐(0) 编辑

2018年10月24日

JS 前端 将图片转换为Base64利用H5 FileReader新特性

摘要: file = document.getElementById("image"); var file=file.files[0]; var fileName=file.name; if(file.type !== 'image/jpeg' && file.type !== 'image/png' && 阅读全文

posted @ 2018-10-24 11:42 Ssumer 阅读(2005) 评论(0) 推荐(0) 编辑

文件流转base64字符串

摘要: public static string GetBase64Data() { string path = @"C: \txt.jpg"; FileStream filestream = new FileStream(path, FileMode.Open); byte[] bt = new byte 阅读全文

posted @ 2018-10-24 11:37 Ssumer 阅读(5293) 评论(0) 推荐(0) 编辑

2018年10月18日

JSON string 在内存中转流 MemoryStream 代码,以及需要注意的问题utf-8问题

摘要: MemoryStream ms = new MemoryStream(System.Text.Encoding.UTF8.GetBytes("字符串"); string str = Convert.ToBase64String(ms.ToArray()); 阅读全文

posted @ 2018-10-18 14:15 Ssumer 阅读(613) 评论(0) 推荐(0) 编辑

C# 打开文件 保存文件

摘要: string path = @"C: \Users\users\Desktop\xxxx.txt";// 文件路径 FileStream filestream = new FileStream(path, FileMode.Open); byte[] bt = new byte[filestream 阅读全文

posted @ 2018-10-18 10:08 Ssumer 阅读(4446) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 下一页

导航