1.WebConfig <configuration><appSettings></appSettings><system.web> <compilation debug="true">My Note: sometimes ,That debug status is true or false will cause different performance,for example,a usercontrol ,named
1、一個XML對應一個對象,對象序列化之後變成xmlpublic class student{ public Student() {//空建構函式 } public Student(string name, int age)//有參數的建構函式 { this.name = name; this.age = age;
1、開閉原則(Open Close Principle)一個軟體實體應當對擴充開放,對修改關閉 ,需求改變時我們可以對模組進行擴充,使其具有新的功能,對更改是封閉的,對模組擴充時,不需要改動原來的代碼。面對抽象而不是面對細節!2、依賴倒轉原則依賴抽象,而不依賴具體(實現),抽象更靈活3、迪米特法則一個軟體實體應當與儘可能少的其他實體發生相互作用,如果這些模組是相對孤立的,那麼它們就不會將修改的壓力傳遞給其他的模組。4、
今日用到WordToHtml的方法,需要添加對office組件的引用(Microsoft.Office.Interop.Word)程式集Microsoft.Office.Interop.Word D:\Program Files\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office12\Microsoft.Office.Interop.Word.dll調用代碼如下using
1、想練習PD,先要從資料庫匯入表到PD裡面,卡住了,不會弄,從網上看了文章還不錯file->Reverse Engineer->DataBase 點擊後,彈出 New Physical Data Model 的對話方塊2、在General選項卡中 Model name:模板名字,自己命名。 DMBMS :根據需要選擇,我選擇的是Microsoft SQL Server 2005 點確定後彈出 Database Reverse Engineering
1.數組中使用linqpublic List<A_FlowPointModel> PointList; var result = PointList.Where(p => p.ParentPointIdList.Contains(parentPointId.ToString()) == true); foreach (var point in result) {}2、xml 中使用linqusing System.Xml.Linq; string