- 博客(6)
- 收藏
- 关注
原创 C# SqlParameter自定义数据类型
public int Insert(DataTable dt) { AccessConfigurationDAL accessdal = new AccessConfigurationDAL(); var drs = dt.Select("S_Required = '1' or S_Required = '0'"); SqlParameter[] parameters = new SqlParameter[drs.Le.
2022-02-25 14:16:31 665
原创 C# Ajax拼HTML
function loadAccessData() { $.ajax({ type: "GET", contentType: "application/json", async: true, cache: false, url: "../Ajax/GetAccessConfiguration.ashx?selectItem=" + $("#DropDownList2 ").val() + "", ti.
2022-02-25 14:14:30 334
原创 C# DataTable转List
public static class DataTableToList { public static List<T> DataTableToDataList<T>(this DataTable dt) { var list = new List<T>(); var plist = new List<PropertyInfo>(typeof(T).Ge.
2022-01-19 14:31:17 1910
原创 C# 简单实现LogHelper
public class LogHelper { String infoPath; String errorPath; Int32 line = 0; public LogHelper() { var dirPath = String.Format(@"Log路径"); if (!Directory.Exists(dirPath)) ..
2022-01-19 14:16:43 598
原创 C# Excel互转DataTable
public class NPOIHelper { /// <summary> /// 将excel导入到datatable /// </summary> /// <param name="filePath">excel路径</param> /// <param name="isColumnName">第一行是否是列名</param> .
2022-01-19 14:11:47 1140
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人