摘要: /// <summary> /// 过滤特殊字符 /// </summary> /// <param name="s"></param> /// <returns></returns> public static string String2Json(String s) { StringBuilde 阅读全文
posted @ 2020-01-09 15:08 噜啦啦0001 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Create table Student ( Id int primary key identity, KM varchar(50), Name varchar(52), Score int ) select * from student 列转行 /*SELECT [姓名], max(CASE 课程 阅读全文
posted @ 2020-01-09 15:07 噜啦啦0001 阅读(152) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// Datatable转换为Json /// </summary> /// <param name="table">Datatable对象</param> /// <returns>Json字符串</returns> public static string ToJs 阅读全文
posted @ 2020-01-09 15:03 噜啦啦0001 阅读(223) 评论(0) 推荐(0) 编辑
摘要: public static DataTable ToDataTable<T>(this IEnumerable<T> varlist) { DataTable dtReturn = new DataTable(); // column names PropertyInfo[] oProps = nu 阅读全文
posted @ 2020-01-09 15:01 噜啦啦0001 阅读(164) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 将List转化为String /// </summary> /// <param name="Lists"></param> /// <param name="ch"></param> /// <returns></returns> public static s 阅读全文
posted @ 2020-01-09 14:59 噜啦啦0001 阅读(379) 评论(0) 推荐(0) 编辑
摘要: public string StripHT(string strHtml) //从html中提取纯文本 { Regex regex = new Regex("<.+?>", RegexOptions.IgnoreCase); string strOutput = regex.Replace(strH 阅读全文
posted @ 2020-01-09 14:57 噜啦啦0001 阅读(2079) 评论(0) 推荐(0) 编辑