随笔分类 - C#
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:DataTable dt = new DataTable(); var age=dt.Compute("avg(age)",""); var height =dt.Compute("avg(height)",""); DataTable.AsEnumerable().Average(x =>x.Fi
阅读全文
摘要:一、生成代理类 对于web service服务和wcf的webservice服务,我们都可以通过一个代理类来调用。 怎么写那个代理类呢?通过一个工具生成即可!!微软为我们提供了一个wsdl.exe的Web服务描述语言工具,wsdl.exe从 WSDL 协定文件、XSD 架构和 .discomap 发
阅读全文
摘要:我们选VS中工具-库程序包管理器-程序包管理器控制台, 这时在VS底部会出现控制台 这时候我们要执行四个操作: 下载安装EF 到工程。PM> Install-Package EntityFramework 开启数据库迁移 PM> Enable-Migrations 添加实体改动对应的数据库改动PM>
阅读全文
摘要: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...
阅读全文
摘要:这样会自动在C:\Inetpub\wwwroot 会出现这个文件夹。 上述步骤都是在安装了 VS2010、MVC3.0和的电脑上操作的 接下来进行服务器的部署 :1. 安装Microsoft .net FrameWork 4.0安装包; 2. 安装ASP.NET MVC 3;3. 设置“Web扩展服
阅读全文
摘要:/// <summary> /// 把集合拼接成用分隔符分割的字符串 /// </summary> /// <param name="source"></param> /// <param name="separator"></param> /// <returns></returns> publi
阅读全文
摘要:web.config ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// using MySql.Data.MySqlClient; using ...
阅读全文
摘要://按部门汇总 IEnumerable report = summary .GroupBy(x => new { x.DeptID, x.DeptName }).Select(g => new WeekReportWithDepartmentInfo { DeptID = g.Key.DeptID, ...
阅读全文
浙公网安备 33010602011771号