Đang chuẩn bị liên kết để tải về tài liệu:
Practical Database Programming With Visual C#.NET- P5
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Tham khảo tài liệu 'practical database programming with visual c#.net- p5', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 4.9 C 3.0 Language Enhancement for LINQ 223 foreach var fi in facultyUpdates.Elements facultyUpdate Faculty faculty db.Faculties. First f f.facultyjd string fi.Element faculty_id faculty.Phone string fi.Element phone db.SubmitC h a n es Figure 4.67 Piece ol srnnple code to read mid updnte database. tion of compositionalAPIs tlnH lev. .qo expressive power of query languages in domains such as relational databases and XML. Compared with C 2.0 significant enhancements have been added into C 3.0 and these enhancements arc miinly acvcloacd to ssppart t.lic Languagc-Int.cgrat.uS Queiy. LINQ is asctinsoPlanasasccatcnsiontthvIaunports data querying in a type-safe way it is released with ihulsie-t version Visual St.unio ViuualCtonio.NiiS 200C.Thcdat.al.obc queried whishweneocOicsutasd inlheproviotios cationaatthiochnnter contakcthc form of object. VLOVSai l c t 0atals n iLeU.co i.i-phalOaaa ADQ.PL.TwhicU inclsdua LINQ to SQI.I. O Qlol atcSet oOndUNQiGEniLOes XML LeNQtoXML snd so on. In aOditionto thoso eeceralLINQ t.oplc2 aseciaIimprovcotcnt.sonL NQ ere made foa CCimdm loeeht CSCiC.Oh emoinecmooLcnts vf thesa iiopemcmcrs sa ann i Lambda expressions Exienrics methods . Implicitly tyccdiosalvaaLanies Query t iL asi v Let s have cdeta eddiccoeuionoUt0vse topics one by one. 4.9.1 LambdaExpressio os Lambda expressions are a language feature that is similar in many ways to anonymous methods. In fact iflambdaexpressionshadbeen developed and implemented into the language first there would have been no need for anonymous methods. The basic idea of using IcmLdc oahreaaiona in Sict.tcyluco asecPcoclo csdatc. In Lite salllyvcnsion C. such as m0LOi-n iavury contm mioaca st.ocvs ict.ct I c iolcraccct.yncSiCcdso ncdt mctliodscnthnCdic mefluids canworaonCSsceveino . Aodnymnns mn-hcScand ItmSda expressiogssxlynathenasacofVOa vaLu coUc mchtdeooSubtocks.TOicconcepl soammon in functional aaoscommLng. The ssnlad ofiambdoecoreesivnccanbe expressed ns n c.ommmOclimS.cdiiat.iC paramct.cacd .