- 博客(10)
- 资源 (19)
- 收藏
- 关注
原创 IEqualityComparer for Linq Distinct() 通用类
根据国外的文章改的IEqualityComparer通用实现方式,由一个属性改为可以比较多个属性。源代码:using System;using System.Collections.Generic;using System.Linq;using System.Reflection;namespace Com.Jesus.Utility{ public clas
2012-06-30 16:28:50 1116
转载 将DataRow转换成相应的对象(通用以及泛型操作)
原文地址http://www.cnblogs.com/jasenkin/archive/2011/02/15/datarow_to_entity_or_generic_type.html相关文献:http://www.cnblogs.com/dyfzwj/archive/2011/04/16/2017916.html 一直以来对框架非常感兴趣,对大多数框架(目前本人看过的)来说一般分为三
2012-06-30 16:27:06 1106
原创 获取两个DataTable之间的差集、交集、并集集合(Except、Intersect、Union)
//比较两个数据源的交集 dt1.AsEnumerable().Intersect(dt2.AsEnumerable(), DataRowComparer.Default).CopyToDataTable(); //获取两个数据源的并集 dt1.AsEnumerable().Union(dt2.AsEnumera
2012-06-29 12:56:24 5798
原创 SQLite 外键 级联更新 删除
自身关联CREATE TABLE Business (ID varchar(50) NOT NULL PRIMARY KEY,Name varchar(200) NOT NULL,"Parent_ID" varchar(50),ConfigurationPage boolean NOT NULL,FOREIGN KEY(Parent_ID) REFERENCES Business(ID)
2012-06-28 19:47:46 11586
原创 如何以编程方式编译使用 C# 编译器代码
c#中要运行文本文件中的c#代码。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Reflection;using System
2012-06-27 17:23:08 1067
原创 DevExpress.XtraLayout.LayoutControl 动态添加控件
// Create an item within a specified group,// bound to a specified data field with the specified editorprivate LayoutControlItem CreateItemWithBoundEditor(BaseEdit editor, object dataSource, s
2012-06-05 19:19:22 14165 3
原创 使用DbProviderFactories操作SQLite
1. 错误1.0.77.0的bin中运行test.exe发生“未能加载文件或程序集“System.Data.SQLite, Version=1.0.76.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139”或它的某一个依赖项。生成此程序集的运行时比当前加载的运行时新,无法加载此程序集。”错误。加入:
2012-06-04 16:38:52 2893
转载 判断一个字符串中中文和字母或数字的个数
using System.Text.RegularExpressions;private string GetResult(string str){ int len=str.Length; str=Regex.Replace(str,"[a-zA-Z]",""); string result=(len-str.Length)+"个字母 "; len=str.Length;
2012-06-02 17:47:58 1216
原创 flowlayoutpanel 显示vertical scroll
设置 AutoScroll to true设置 WrapContents to false.
2012-06-02 15:49:06 2319
原创 Devexpress gridview 常用设置
自己用的this.gvSchemesDescription.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; this.gvSchemesDescription.GridControl = this.gcSchemesDescription;
2012-06-02 15:26:23 2740
iTextSharp读取表格数据.rar
2019-07-04
DevExpress Diagram通过数据控制显示例子
2017-09-25
DevExpress GridControl Drag Drop
2015-06-18
c# 自定义序列化两种方法
2014-04-07
DevExpress TreeList 数据绑定
2014-04-05
AForge示例源代码
2011-02-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人