博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年2月22日

摘要: 对后台数据库进行操作通常使用ADO等技术,分层开发时把一个表映射成一个实体类,再定义相应的数据接口类即可,对数据库的操作转换成了对类的操作,通常按以下方式来定义函数学(学习资料) 实体类Employee中的属性,方法和事件 ... 阅读全文

posted @ 2008-02-22 14:49 Boscoing 阅读(215) 评论(0) 推荐(0)

2008年1月16日

摘要: 引言 在软件开发领域,测试驱动开发(Test Driven Development,TDD)技术在逐渐为广大开发者所接受,它是在添加新代码之前让你的测试代码出错的一种开发技术。在开始编写代码之前首先要写你的测试代码,然后再编写代码让你的测试通过,可以想象,如果没有一个好的单元测试工具,这项工作其实是无法完成的。相信很多.NET开发人员者对于开源的NUnit都不陌生,但是它并不能很好的与Visual Studio.NET IDE集成起来。 阅读全文

posted @ 2008-01-16 10:53 Boscoing 阅读(166) 评论(0) 推荐(0)

2008年1月15日

摘要: private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { // 对第1列相同单元格进行合并 if (e.ColumnIndex 0 && e.RowIndex==-1 && dataGridView1.Columns[e.ColumnIndex] is DataGridViewTextBoxColumn) { if (dataGridView1.Columns[e.ColumnIndex].HeaderText.Trim().ToString() .Equals(dataGridView1.Columns[e.ColumnIndex-1].HeaderText.Trim().ToString())) 阅读全文

posted @ 2008-01-15 22:07 Boscoing 阅读(382) 评论(0) 推荐(0)

摘要: 1, set web application Set any port, it’s better to use a fix port. Because the “ASP.NET Developer Server” does not support access from other ip other than the host computer, we need a program to forward the ip request from outside 2, TCPTrace.exe This program will accept any network request from port 80 to port 5000 Then you can start up the web project, and try to access from other computer like this: 阅读全文

posted @ 2008-01-15 17:21 Boscoing 阅读(170) 评论(0) 推荐(0)