2010年6月21日

Linq To Sql常用方法使用总结

摘要: 准备工作:数据表:Table1 ID int PKCol1 varchar(50)Col2 int======================================Table2ID int PKoID int FKRemarks varchar(50)======================================方法简介:[b]1. 查询[/b]DBCo... 阅读全文

posted @ 2010-06-21 21:02 David.Goo 阅读(256) 评论(0) 推荐(0) 编辑

2010年6月8日

C#中常用的经典文件操作方法

摘要: C#追加文件StreamWritersw=File.AppendText(Server.MapPath(".")+"\\myText.txt");sw.WriteLine("追逐理想");sw.WriteLine("kzlll");sw.WriteLine(".NET笔记");sw.Flush();sw.Close();C#拷贝文件stringorignFile,NewFile;orignFile... 阅读全文

posted @ 2010-06-08 16:38 David.Goo 阅读(131) 评论(0) 推荐(0) 编辑

2010年5月27日

C#鼠标拖动控件改变位置并绘制虚框

摘要: private Point downPoint;private Rectangle downRectangle;private Rectangle lastRectangle;private void pictureBox1_MouseDown(object sender, MouseEventArgs e){ if (e.Button != MouseButtons.Left) return; ... 阅读全文

posted @ 2010-05-27 15:03 David.Goo 阅读(562) 评论(0) 推荐(0) 编辑

2010年2月27日

工作每天必看

摘要: 阅读全文

posted @ 2010-02-27 11:06 David.Goo 阅读(82) 评论(0) 推荐(0) 编辑

2010年1月15日

LINQ Update,delete,insert

摘要: 我们继续讲解LINQ to SQL语句,这篇我们来讨论Insert/Update/Delete操作。这个在我们的程序中最为常用了。我们直接看例子。Insert/Update/Delete操作插入(Insert)1.简单形式说明:new一个对象,使用InsertOnSubmit方法将其加入到对应的集合中,使用SubmitChanges()提交到数据库。NorthwindDataContext db ... 阅读全文

posted @ 2010-01-15 10:20 David.Goo 阅读(530) 评论(0) 推荐(0) 编辑

导航