2019年4月1日

C#工具:Ado.Net SqlServer数据库 MySql数据库

摘要: 数据库连接字符串(web.config来配置),可以动态更改connectionString支持多数据库. SqlServer调用数据库 using System; using System.Collections.Generic; using System.Linq; using System.T 阅读全文

posted @ 2019-04-01 09:20 刘元蛟 阅读(733) 评论(1) 推荐(0) 编辑

2019年3月29日

C#工具:加密解密帮助类

摘要: using System; using System.IO; using System.Security.Cryptography; using System.Text; //加密字符串,注意strEncrKey的长度为8位(如果要增加或者减少key长度,调整IV的长度就是了) //public s 阅读全文

posted @ 2019-03-29 19:40 刘元蛟 阅读(1057) 评论(0) 推荐(1) 编辑

C#工具:汉字转拼音帮助类

摘要: using System.Text; namespace Core.Common { /// <summary> /// 取汉字拼音的首字母 /// </summary> public class PinYin { /// <summary> /// 取汉字拼音的首字母 /// </summary> 阅读全文

posted @ 2019-03-29 19:37 刘元蛟 阅读(834) 评论(0) 推荐(0) 编辑

C#工具:分词辅助类

摘要: using System; using System.Collections; using System.IO; using System.Text.RegularExpressions; namespace Common { /// <summary> /// 分词辅助类 /// </summar 阅读全文

posted @ 2019-03-29 19:24 刘元蛟 阅读(869) 评论(0) 推荐(0) 编辑

C#工具:反射帮助类 泛型反射帮助类

摘要: 反射帮助类 using System; using System.Reflection; using System.Data; using System.Drawing; using System.Resources; using System.ComponentModel; using Syste 阅读全文

posted @ 2019-03-29 19:14 刘元蛟 阅读(1403) 评论(0) 推荐(0) 编辑

C#工具:ASP.NET MVC单例模式(懒汉)实现文件上传

摘要: 1.SingletonConfigRead帮助类 2.前台代码 3.后台代码 阅读全文

posted @ 2019-03-29 19:10 刘元蛟 阅读(626) 评论(0) 推荐(0) 编辑

C#工具:MySQL忘记密码解决方法

摘要: 1、进入管理员控制台停止mysql服务:net stop mysql; 2、进入mysql的安装路径,如我的安装路径为C:\Program Files\MySQL\MySQL Server 5.5,打开my.ini文件,找到[mysqld],在该行下面添加 skip_grant_tables,也就是 阅读全文

posted @ 2019-03-29 19:06 刘元蛟 阅读(202) 评论(0) 推荐(0) 编辑

C#工具:WPF分页

摘要: 1.使用ItemsControl控件 <UserControl x:Class="SunCreate.Vipf.Client.UI.CityDoor.PageControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentati 阅读全文

posted @ 2019-03-29 19:03 刘元蛟 阅读(991) 评论(0) 推荐(0) 编辑

C#工具:WPF生成图片验证码

摘要: 1.使用ImageFormatConvertHelper 2.使用VerifyCodeHelper 3.调用方式 返回Code(验证码内容) 阅读全文

posted @ 2019-03-29 18:54 刘元蛟 阅读(849) 评论(0) 推荐(0) 编辑

C#工具:WebAPI常见问题及解决方案

摘要: Web.config中连接字符串配置问题解决方法:<ConnectionStrings>中<add>的providerName写错正确写法:providerName="System.Data.SqlClient" model为空,两种情况1.没有加上HttpPost请求。2.没有获取到值。 遇见这个 阅读全文

posted @ 2019-03-29 18:48 刘元蛟 阅读(887) 评论(0) 推荐(0) 编辑

导航