随笔分类 -  C#

摘要: 阅读全文
posted @ 2018-04-20 11:58 cclon 阅读(215) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-03-20 14:45 cclon 阅读(518) 评论(2) 推荐(0)
摘要:using RestSharp; using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Text; using System... 阅读全文
posted @ 2017-05-10 17:25 cclon 阅读(5340) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ZDWorkflow.Model; using ZDWorkflow.Common; using ZDWorkflow.Common.Extensions... 阅读全文
posted @ 2017-01-20 17:25 cclon 阅读(1312) 评论(0) 推荐(0)
摘要:DataTable dt = new DataTable(); var age=dt.Compute("avg(age)",""); var height =dt.Compute("avg(height)",""); DataTable.AsEnumerable().Average(x =>x.Fi 阅读全文
posted @ 2016-12-30 19:10 cclon 阅读(6215) 评论(0) 推荐(0)
摘要:一、生成代理类 对于web service服务和wcf的webservice服务,我们都可以通过一个代理类来调用。 怎么写那个代理类呢?通过一个工具生成即可!!微软为我们提供了一个wsdl.exe的Web服务描述语言工具,wsdl.exe从 WSDL 协定文件、XSD 架构和 .discomap 发 阅读全文
posted @ 2016-11-25 17:18 cclon 阅读(543) 评论(0) 推荐(0)
摘要:我们选VS中工具-库程序包管理器-程序包管理器控制台, 这时在VS底部会出现控制台 这时候我们要执行四个操作: 下载安装EF 到工程。PM> Install-Package EntityFramework 开启数据库迁移 PM> Enable-Migrations 添加实体改动对应的数据库改动PM> 阅读全文
posted @ 2016-11-10 11:09 cclon 阅读(1080) 评论(0) 推荐(0)
摘要:using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Web; namespace App_Helper { public abstract class Ex... 阅读全文
posted @ 2016-09-07 18:24 cclon 阅读(219) 评论(0) 推荐(0)
摘要:这样会自动在C:\Inetpub\wwwroot 会出现这个文件夹。 上述步骤都是在安装了 VS2010、MVC3.0和的电脑上操作的 接下来进行服务器的部署 :1. 安装Microsoft .net FrameWork 4.0安装包; 2. 安装ASP.NET MVC 3;3. 设置“Web扩展服 阅读全文
posted @ 2016-08-17 18:13 cclon 阅读(203) 评论(0) 推荐(0)
摘要:/// <summary> /// 把集合拼接成用分隔符分割的字符串 /// </summary> /// <param name="source"></param> /// <param name="separator"></param> /// <returns></returns> publi 阅读全文
posted @ 2016-08-09 11:21 cclon 阅读(527) 评论(0) 推荐(0)
摘要:web.config ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// using MySql.Data.MySqlClient; using ... 阅读全文
posted @ 2016-08-09 11:08 cclon 阅读(867) 评论(0) 推荐(0)
摘要://按部门汇总 IEnumerable report = summary .GroupBy(x => new { x.DeptID, x.DeptName }).Select(g => new WeekReportWithDepartmentInfo { DeptID = g.Key.DeptID, ... 阅读全文
posted @ 2016-07-22 12:45 cclon 阅读(412) 评论(0) 推荐(0)