2012年5月5日

Linq to XML

摘要: 额,首先当然是创建XML了(新手要照着敲代码啊) XDocument xdoc = new XDocument();//document是文档的意思,XDocument XML的文档(文件),这句话就是创建一个xml文件(在内存中,不是在你的c,d..盘上) XElement xroot = new XElement("Root");//创建一个根节点,名字Root无所谓,你可以随便起个 xdoc.Add(xroot);//一个XML只有一个根 for (int i = 0; i < 3; i++) ... 阅读全文

posted @ 2012-05-05 23:56 程序员喵喵 阅读(891) 评论(0) 推荐(0)

ADO.net SqlHelper类代码

摘要: 亲!你能一次性通过Sqlhelper类吗public static readonly string conStr=ConfigurationManager.ConnectionStrings["conStr"].tostring();注意readonly不要掉了,加上更安全ConfirurationManager.ConnectionStrings[]......是ConnectionStrings不是ConnectionString,我老在这犯错ExecuteNonQuery:注意conn.Open()放的最优的位置public static int ExecuteNon 阅读全文

posted @ 2012-05-05 22:56 程序员喵喵 阅读(227) 评论(0) 推荐(0)

.net术语全程

摘要: IDE : Integrated Development EnvironmentCLR : Common Language RuntimeFCL : .NET Framework Class LibraryCTS : Common Type SystemCLS : Common Language SpecificationJIT : Just-In-TimeGC : Garbage CollectorMSIL: Microsoft Intermediate LanguageSDK: Software Development KitAPI: Application Programming Int 阅读全文

posted @ 2012-05-05 22:36 程序员喵喵 阅读(1068) 评论(0) 推荐(0)

导航