摘要: 1 下载并引用Npoi类库 http://npoi.codeplex.com 2 示例代码 阅读全文
posted @ 2017-10-30 15:01 by-lhc 阅读(2024) 评论(0) 推荐(0)
摘要: 一、效果展示 表中的数据: 查询到的数据: 二、SQL Server中实现 阅读全文
posted @ 2017-10-25 14:07 by-lhc 阅读(193) 评论(0) 推荐(0)
摘要: 1.定义标签和获取标签值的方法 2.使用标签和获取标签值的方法 阅读全文
posted @ 2017-09-25 11:24 by-lhc 阅读(1417) 评论(0) 推荐(0)
摘要: namespace Comm { public static class DataConvert { /// /// 把DataRow对象转成实体类。 /// /// /// /// static public T ToEntity(DataRow dr) w... 阅读全文
posted @ 2017-09-25 10:43 by-lhc 阅读(4132) 评论(0) 推荐(1)
摘要: SELECT * FROM Employee from e in Employee select e Employee .Select(e => e) SELECT ID, Title FROM Employee from e in Employee select new {ID = e.ID, T 阅读全文
posted @ 2017-08-29 19:23 by-lhc 阅读(190) 评论(0) 推荐(0)
摘要: 一、创建示例表 CREATE TABLE TestTable ( name VARCHAR(10), skill VARCHAR(10) ); INSERT INTO TestTable VALUES ('张三', 'php'); INSERT INTO TestTable VALUES ('张三' 阅读全文
posted @ 2017-07-26 13:15 by-lhc 阅读(203) 评论(0) 推荐(0)
摘要: 一、创建BoolVisibilityConverter类和OppositeVisibilityConverter类 BoolVisibilityConverter.cs OppositeVisibilityConverter.cs 二、创建MainButton用户控件 MainButton.xaml 阅读全文
posted @ 2017-07-25 15:23 by-lhc 阅读(426) 评论(0) 推荐(0)
摘要: 一、创建BannerAD用户控件 一个Banner用户控件可以包含n个BannerAD用户控件,在此创建2个BannerAD用户控件作为示例; BannerAD1.xaml BannerAD1.xaml.cs BannerAD2.xaml BannerAD2.xaml.cs 二、创建BoolVisi 阅读全文
posted @ 2017-07-24 17:15 by-lhc 阅读(326) 评论(0) 推荐(0)
摘要: 一、sql server分页查询 1.sql server 2012及以后 2.sql server 2005及以后 3.sql server 2005之前 二、mysql分页查询 三、oracle分页查询 阅读全文
posted @ 2017-07-23 21:38 by-lhc 阅读(183) 评论(0) 推荐(0)
摘要: 1.创建存储过程 create procedure 过程名称 ([参数1,参数2,...]) as <pl/sql>; 2.重命名存储过程 alter procedure 过程名称1 rename to 过程名称2; 3.执行存储过程 call/perform procedure 过程名称 ([参数 阅读全文
posted @ 2017-07-23 15:05 by-lhc 阅读(231) 评论(0) 推荐(0)