摘要: using (CommonEntities entities = new CommonEntities()) {/*MergeOption.NoTracking 选项如果仅仅检索数据,并不需要更新数据,则可以通过使用MergeOption.NoTracking 取消变更跟踪。这样,就不会使用ObjectStateManager,减少执行查询的时间,所有返回的实体将是分离的状态(detache... 阅读全文
posted @ 2008-12-09 13:25 gameoverboss 阅读(261) 评论(0) 推荐(0) 编辑
摘要: aspx页面 有cookie 要将里面的S1过期 该页面 比较特殊 页面在page目录下面 http://localhost:1170/page/WebForm1.aspx 如果没有红色的那句 将不能达到删除cookie的用意 HttpCookie cookie = new HttpCookie("S1"); cookie.Expires = DateTim... 阅读全文
posted @ 2008-11-13 16:01 gameoverboss 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 今天再次遇到精度问题 请看下面程序 decimal d1 = 1066.67M; decimal d = -200; decimal d2 = d1 + d; Debug.WriteLine(d1); Debug.WriteLine(d); ... 阅读全文
posted @ 2008-09-23 09:55 gameoverboss 阅读(427) 评论(0) 推荐(0) 编辑
摘要: command = Factory.CreateCommand(); command.CommandText = cmdText; command.Connection = connection; if (commandType == CommandType.St... 阅读全文
posted @ 2008-08-22 14:47 gameoverboss 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 存储过程 在Toad测试可以运行 下面语句在.NET 不能跑 begin exec 存储过程的名字(参数); end; 难道调用存储过程 一定要CommandType.StoredProcedure 查了很多地方 都找不到答案 阅读全文
posted @ 2008-08-21 08:55 gameoverboss 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 网页input标签 type="text" 不能保存 换行符 就是程序中的 \r\n 不能保存 阅读全文
posted @ 2008-07-23 19:07 gameoverboss 阅读(958) 评论(0) 推荐(0) 编辑
摘要: 1像素 = 0.75磅 高度一般 是按磅显示的 宽度: window显示的: 像素 = ( 宽度 * 因子 ) + 5 // 5是两边的边框 每个边框2.5像素 OPENxml 像素 = width * 因子 因子 是默认字体 数字的平均宽度像素 默认字体 xml中的第一种字体 ... 阅读全文
posted @ 2008-07-23 19:01 gameoverboss 阅读(337) 评论(0) 推荐(0) 编辑
摘要: C盘太小 vs2008装不下 Acronis Disk Director Suite Disk Director Suite 是 Acronis 公司出品的一套强大的硬盘管理工具,它可以分区管理和在不损失资料的情况下对现有硬盘进行重新分区或优化调整,可以对损坏或删除的分区中的数据进行修复。除此之外,软件还是一个不错的引导管理程序,用它你可以轻松的实现多操作系统的安装和引导,支持 Wi... 阅读全文
posted @ 2008-07-23 19:00 gameoverboss 阅读(1362) 评论(0) 推荐(0) 编辑
摘要: 1.首先 解释一下我们保存数据操作 UpdateDataSet(ds) oracle公司提供的类库Oracle.DataAccess.dll 或者是 微软提供的类库System.Data.dll 要将修改过的DataSet保存到数据库 要有一些约定 a. 表明必须和真实数据库中的一致 data.Tables[0].TableName = "table3" b.... 阅读全文
posted @ 2008-07-23 18:58 gameoverboss 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 地址 : http://forums.asp.net/t/990623.aspx I have a query that I wrote that uses temp tables in it: (simple example) with data as (select * from table1) select * from data, table1 where table1.... 阅读全文
posted @ 2008-07-23 18:56 gameoverboss 阅读(1206) 评论(0) 推荐(0) 编辑