摘要:安装 sql server 功能包 中的 SQL Server AMO 组件在C:\Program Files\Microsoft SQL Server\120\SDK\Assemblies 目录中 引用 Microsoft.AnalysisServices.DLL using Microsoft.
阅读全文
摘要:EntityFramework Extended 是EF的扩展,可以批量删除或更新数据表,非常方便例: 以下代码为批量删除 f01字段>=3的记录 myContent db = new myContent(); db.Tbl01.Where(o => o.f01 >= 3).Delete(); db...
阅读全文
摘要:找了很久的的关于EF 实现动态查询及条件,最后发现使用EntityFramework.Extended最为简单。1. 引用EntityFramework.Extended (自己在Nuget下载) using EntityFramework.Extensions;using System.Linq...
阅读全文
摘要:根据Json结果集生成Bar图, 第一列固定为描述, 后面的列为值字段. ECharts
阅读全文
摘要:简单写了个C# 以正则获得URL地址栏参数的方法 public static string GetPara(string url, string name) { Regex reg = new Regex(@"(?:^|\?|&)" + name +...
阅读全文
摘要:C#扩展方法的实现,可用于通过定义接口方法,实现多类继承。using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication12{ //定义...
阅读全文
摘要:EntityFramework C# SQL 更新结构
阅读全文
摘要:在服务端 web.config添加以下配置 客户端脚本如下: Get $.ajax({ url: "http://localhost:49302/api/meeting/login/xxx", ...
阅读全文
摘要:在网上下载 ThoughtWorks.QRCode.dll以下为代码using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;usi...
阅读全文
摘要:在vs中,新增一个Form 会对应生成三个文件from1.cs、form1.designer.cs,其中designer文件是放在第一个文件的下一级的,这样看起来文件的结构非常清楚。实际应用中,我们也经常会把一个类折分成几个文件来编写,以确保文件不会过长,但这些文件顺序排列起来,会使文件变得非常...
阅读全文