2013年6月8日

PivotTable

摘要: SELECT InvoiceNo,isnull([1],'')+','+isnull([2],'')+','+isnull([3],'')+','+isnull([4],'') ActionType FROM ( SELECT InvoiceNo,cast(SendType as varchar) ActionType from dbo.PrintShareEmail SI with (nolock) where 1=1 --AND UserID=@userid AND (@type 阅读全文

posted @ 2013-06-08 10:01 远大前程 阅读(131) 评论(0) 推荐(0) 编辑

2013年4月10日

TaskFactory.FromAsync与委托的异步调用

摘要: //异步执行方法private string doo(string a, string b, string c){int i = 10, j = 0, k = 0;try{WriteLog("执行doo", "test1");k = i / j;return "1";}catch (Exception ex){WriteLog("执行doo Error:" + ex.Message, "test1");return "-1";}}protected void btnTest_ 阅读全文

posted @ 2013-04-10 19:01 远大前程 阅读(397) 评论(0) 推荐(0) 编辑

2013年2月5日

LinQ to DataSet 应用

摘要: //gmid是传入的变量 DataTable dt = ds.Tables[0]; DataRow dr = dt.Rows[0]; if (!string.IsNullOrWhiteSpace(gmid)) { IEnumerable<DataRow> query = from a in dt.AsEnumerable() ... 阅读全文

posted @ 2013-02-05 12:34 远大前程 阅读(141) 评论(1) 推荐(0) 编辑

导航