摘要:
using Newtonsoft.Json.Linq; namespace Utility { public static class JsonExt { /// /// 转换为JObject对象 /// /// /// public static JObject ToJOb... 阅读全文
摘要:
1、无参数查询var model = db.Database.SqlQuery<UserInfo>("select* from UserInfoes ").ToList(); 2、有参查询var model = db.Database.SqlQuery<UserInfo>("select* from 阅读全文
摘要:
新:http://html-agility-pack.net/?z=codeplex 原:http://htmlagilitypack.codeplex.com/ 阅读全文
摘要:
telnet localhost 11211 flush_all 最后要一定要关闭dos窗体,不然会导致memcached写值返回ture,但是实际上并没有写入值 阅读全文
摘要:
public static string InvokeStopwatch(Action function) { System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); //开始执行业务代码 ... 阅读全文
摘要:
using Lba_Ciac; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace Lbb.Cx.Ciac.Utility { public class WaitingFormHelper ... 阅读全文
摘要:
1.任务管理器,查看,选择列,选择PID(进程标识符) 2.通过cmd查询: 管理员身份运行cmd,跳转到C:\Windows\System32\inetsrv目录,然后运行appcmd list wp即可查看 2.通过cmd查询: 管理员身份运行cmd,跳转到C:\Windows\System32 阅读全文
摘要:
public class ExcelHelper { #region 数据导出至Excel文件 /// /// 导出Excel文件,自动返回可下载的文件流 /// public static void DataTable1Excel(System.Data.DataTable dtData) ... 阅读全文
摘要:
public class DataTableHelper { /// /// 给DataTable增加一个自增列 /// 如果DataTable 存在 identityid 字段 则 直接返回DataTable 不做任何处理 /// /// DataTable /// 返回Datatab... 阅读全文
摘要:
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Xml; usin... 阅读全文