上一页 1 ··· 3 4 5 6 7 8 9 下一页
前言.NET 3.5中新增的表达式树(Expression Tree)特性,第一次在.NET平台中引入了“逻辑即数据”的概念。也就是说,我们可以在代码里使用高级语言的形式编写一段逻辑,但是这段逻辑最终会被 保存为数据。正因为如此,我们可以使用各种不同的方法对它进行处理。例如,您可以将其转化为一个SQL查询,或者外部服务调用等等,这便是LINQ to Everything在技术实现上的重要基石之一。实事求是地说,.NET 3.5中的表达式树的能力较为有限,只能用来表示一个“表达式”,而不能表示“语句”。也就是说,我们可以用它来表示一次“方法调用”或“属性访问”,但 不能用它来表示一段“逻辑”。不 Read More
posted @ 2012-08-03 15:47 lx_ Views(415) Comments(0) Diggs(0) Edit
在UML类图中,常见的有以下几种关系:泛化(Generalization),实现(Realization),关联(Association),聚合(Aggregation),组合(Composition),依赖(Dependency)1.泛化(Generalization)【泛化关系】:是一种继承关系,它指定了子类如何特化父类的所有特征和行为例如:老虎是动物的一种.【箭头指向】:带三角箭头的实线,箭头指向父类2.实现(Realization)【实现关系】:是一种类与接口的关系,表示类是接口所有特征和行为的实现【箭头指向】:带三角箭头的虚线,箭头指向接口3.关联(Association)【关联关系 Read More
posted @ 2012-07-23 14:48 lx_ Views(155) Comments(0) Diggs(0) Edit
一个简单的查询可以返回多个结果集,在一次查询中返回多个结果集可以提高查询的效率,还能避免同时占用多个数据库链接/// <summary> /// 返回多个结果集 /// </summary> /// <returns></returns> public void GetTwoResultSet() { SqlConnection conn = new SqlConnection(_connstr); string sql = "select * from Table_1;select * from Table_2"; Sq.. Read More
posted @ 2012-07-19 10:01 lx_ Views(290) Comments(0) Diggs(0) Edit
今天开发一个winform的小工具时,发现在不同系统下,窗口的高度不一样。经查资料只要把Form的属性 AutoScaleMode设置为System.Windows.Forms.AutoScaleMode.None即可解决问题 Read More
posted @ 2012-07-13 16:34 lx_ Views(216) Comments(0) Diggs(0) Edit
HTML头信息<meta charset="utf-8" /><link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon" /><meta name="Generator" content="LIXIPHP (http://lixiphp.com)" /><meta name="viewport" content=" Read More
posted @ 2012-06-25 14:43 lx_ Views(561) Comments(0) Diggs(0) Edit
方法一: 在网页的中增加以上这句话,可以让网页的宽度自动适应手机屏幕的宽度。其中:width=device-width :表示宽度是设备屏幕的宽度initial-scale=1.0:表示初始的缩放比例minimum-scale=0.5:表示最小的缩放比例maximum-scale=2.0:... Read More
posted @ 2012-06-25 11:33 lx_ Views(1817) Comments(1) Diggs(0) Edit
string osPat = "mozilla|m3gate|winwap|openwave|Windows NT|Windows 3.1|95|Blackcomb|98|ME|X Window|Longhorn|ubuntu|AIX|Linux|AmigaOS|BEOS|HP-UX|OpenBSD|FreeBSD|NetBSD|OS/2|OSF1|SUN"; string uAgent = Request.ServerVariables["HTTP_USER_AGENT"]; Regex reg = new Regex(osPat); ... Read More
posted @ 2012-06-25 11:21 lx_ Views(1344) Comments(0) Diggs(1) Edit
Page.RegisterRequiresRaiseEvent()与Page.RegisterRequiresPostBack()方法 Page.RegisterRequiresRaiseEvent()与Page.RegisterRequiresPostBack()方法是两个与回传有关的另外两个方法,微软对这两个方法的解释: Page.RegisterRequiresRaiseEvent() :将 ASP.NET 服务器控件注册为需要在 Page 上处理控件时引发事件的控件。 Page.RegisterRequiresPostBack() :将控件注册为需要回发处理的控件。Page.Regis Read More
posted @ 2012-06-19 11:53 lx_ Views(198) Comments(0) Diggs(0) Edit
1. 生成for 2000版本的数据库脚本2005 的mangerstudio-- 打开"对象资源管理器"(没有的话按F8), 连接到你的实例-- 右键要转到2000的库-- 任务-- 生成脚本-- 在"脚本向导"的"选择数据库"中, 确定选择的是要转到2000的库-- 勾选"为所选数据库中的所有对象编写脚本"-- 在接下来的"选择脚本选项"中, 找到"为服务器版本编写脚本"项, 选择"SQL Server 2000"-- 其他选项根据需要设置-- 最后把 Read More
posted @ 2012-06-05 10:58 lx_ Views(220) Comments(0) Diggs(0) Edit
extjs grid renderer用法今天在做项目时,需要在列表中的某列添加一个超链接,首先要取得当前选中行的数据,判断数据类型,然后链接到不同的页面,研究下。发现ExtJs提供了一个很强的方法如下:var cm = new Ext.grid.ColumnModel([new Ext.grid.RowNumberer({ header: "", width: 20, align: 'center' }),{ header: '', align: 'center', dataIndex: 'AccountAndRos Read More
posted @ 2012-05-25 13:54 lx_ Views(433) Comments(0) Diggs(0) Edit
上一页 1 ··· 3 4 5 6 7 8 9 下一页