tag:blogger.com,1999:blog-361743812009-02-20T16:11:34.950-08:00Ferracchiati's blogFabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.comBlogger40125tag:blogger.com,1999:blog-36174381.post-17320504199547803842008-08-18T02:16:00.000-07:002008-08-18T02:18:58.978-07:00.NET 3.5 SP1: LINQ speeds up its performanceThanks to Dinesh's blog you can <a href="http://blogs.msdn.com/dinesh.kulkarni/archive/2008/08/10/net-fx-3-5-sp1-two-perf-improvements-linq-to-objects-and-linq-to-sql.aspx">read</a> about new LINQ to Object and LINQ to SQL performances.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-1732050419954780384?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-71823130084026562022008-06-19T01:05:00.000-07:002008-06-19T01:08:32.913-07:00Strange issue during SQL Server 2008 RC0 setupI'm installing Microsoft SQL Server 2008 RC0 on a Virtual PC image and during the .NET 3.5 SP1 beta installation (it seems mandatory!) setup asked to close itself! The message was something like this: "In order to continue the setup please close the following application: .NET 3.5 Sp1 beta 1" :O. I've pressed the Ignore button and everything is going well.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-7182313008402656202?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-66598964436448385572008-06-19T00:52:00.000-07:002008-06-19T01:02:00.110-07:00Firefox 3 litigates with Silverlight 1.0Reading the Nigel Parker's blog you can see why your Silverlight apps stopped to work if used with Firefox 3. It seems that the problem is during Silverlight's version identification. As result you obtain the banner asking you to install Silverlight instead of the Silverlight application. For recent version of Silverlight such as 2.0 beta 1 and 2.0 beta 2, everything works fine.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-6659896443644838557?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-78222396983853247842008-06-11T05:52:00.000-07:002008-06-12T03:16:19.036-07:00SQL Server 2008 RC 0 is outI'm reviewing a couple of books on SQL Server 2008. Thanks to them I've been able to appreciate new features and improvements provided by the new version. If you want to try the RC0 release of SQL Server 2008 you can obtain it at this <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=35f53843-03f7-4ed5-8142-24a4c024ca05&amp;DisplayLang=en">address</a>. It is valid just for 180 days. If you want to use it with Visual Studio 2008 remember to download the SP 1 beta.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-7822239698385324784?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-53587116387953387392008-06-10T05:15:00.000-07:002008-06-10T05:18:28.723-07:00Silverlight 2 Beta 2 is outSo, a new Silverlight beta version is <a href="http://silverlight.net/getstarted">out</a>. Watch out! It is not compatible with the previous beta version so if you update to this new version you have to update your sites as well. Find more information <a href="http://adoguy.com/2008/06/06/What_s_Changed_in_Silverlight_2_Beta_2.aspx">here</a> and <a href="http://weblogs.asp.net/scottgu/archive/2008/06/06/silverlight-2-beta2-released.aspx">here</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-5358711638795338739?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-15060804675794099762008-06-10T01:53:00.000-07:002008-06-10T03:42:17.687-07:00[OT] My apologies...Hello everybody,<br />I'm here to apologize with you about the update frequency of this blog. A lot of things happened from my last post. For example, I'm just come back from my honeymoon! This means I'm married, yes. And, do you know about the time that marriage's preparation consume? This is the main reason about the scarce blog updating. Moreover, I was busy to update my book's content. At last, I've finished my work and the book is about to be printed. The Ebook version of the book can be found <a href="http://www.apress.com/book/view/1430215801">here</a>.<br /><br />By the way, I'm thinking to change my blog from an unique LINQ prospective to a more generic ones. I like to follow other technologies such as Silverlight, XNA, etc.<br /><br />So, stay tuned, I'll try to do my best to provide you updated information on the coolest Microsoft new technologies.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-1506080467579409976?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-41554672597561064342007-11-20T04:14:00.000-08:002007-11-20T04:20:18.596-08:00LINQ for Visual C#/Visual Basic 2008Good news for me! Apress gave me its consensus to update my books to the final version of LINQ shipped with Visual Studio 2008. Pretty much work for me, but I'm happy of that! Stay tuned, I'll post my experinces during books' update.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-4155467259756106434?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com1tag:blogger.com,1999:blog-36174381.post-39665333492966362352007-11-20T04:08:00.001-08:002007-11-20T04:13:39.920-08:00At last, Visual Studio 2008 is here!Microsoft released the Visual Studio 2008 RTM release. Lot of news on blogs about it, I don't like to repeat it: check these links: <a href="http://weblogs.asp.net/scottgu/archive/2007/11/19/visual-studio-2008-and-net-3-5-released.aspx">ScottGu's</a>, <a href="http://blogs.msdn.com/somasegar/">SomaSegar</a>, and <a href="http://blogs.msdn.com/charlie/archive/2007/11/20/some-articles-on-visual-studio-2008.aspx">Charlie Calvert</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-3966533349296636235?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-19674431420755805122007-10-10T02:49:00.000-07:002007-10-10T02:51:49.125-07:00Changes from LINQ to SQL Beta 2 to RTMDinesh Kulkarni published a <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2060651&amp;SiteID=1">post</a> where are shown the news that coming in the RTM release of the LINQ to SQL framework.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-1967443142075580512?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-61243882087622307762007-07-27T05:16:00.000-07:002007-07-27T05:22:55.590-07:00Visual Studio 2008 Beta 2 is out!!!No more Orcas here... Visual Studio 2008 is the new name for the next release of Microsoft's development tool. You can find virtual machine images and installables <a href="http://msdn2.microsoft.com/en-us/vstudio/aa700831.aspx">here</a>. Happy download!<br /><br />In order to have a summery of LINQ changes take a look at <a href="http://blogs.msdn.com/dinesh.kulkarni/archive/2007/07/26/linq-to-sql-fka-dlinq-what-s-new-in-beta2.aspx">here</a>.<br /><br />Happy holidays to all, I'll check beta 2 features from <a href="http://www.chia.it/Aspivento44_2.jpg">here</a>!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-6124388208762230776?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com3tag:blogger.com,1999:blog-36174381.post-14630576565827543342007-07-16T02:16:00.000-07:002007-07-16T02:27:50.546-07:00Added Lambda Functions to VB.NET 9.0 in June 2007 CTPStarting from the June 2007 CTP release even Visual Basic language has its own way to manage Lambda expressions. Let's see an example:<br /><br /><span style="font-family:courier new;">1: Public Delegate Function Sum(ByVal a As Integer, ByVal b As Integer) As Integer </span><br /><span style="font-family:courier new;">2: ... </span><br /><span style="font-family:courier new;">3: Dim DoSum As Sum = Function(ByVal a, ByVal b) a + b </span><br /><span style="font-family:courier new;">4: Dim ret As Integer = DoSum(4, 5) </span><br /><span style="font-family:courier new;">5: </span><br /><span style="font-family:courier new;">6: 'Using named arguments </span><br /><span style="font-family:courier new;">7: ret = DoSum(b:=3, a:=4)</span><br /><br />Using the Function keyword you can define the Lambda expression (see row 3). In the next beta 2 release will not be more needed to specify the ByVal keyword for the Lambda's parameters.<br /><br />Thanks to Corrado Cavalli for this info.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-1463057656582754334?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-58553268754036244262007-06-28T01:30:00.000-07:002007-06-28T01:33:33.785-07:00SQLMetal and Linq to SQL designer will use the same DBML schema from Beta 2As declared by Jay Hickerson from Microsoft, starting with Beta 2 the code generated by SQLMetal tool and Linq to SQL designer will be the same since they share the same DBML schema.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-5855326875403624426?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com1tag:blogger.com,1999:blog-36174381.post-36013921083159222272007-06-08T02:29:00.000-07:002007-06-08T02:35:07.473-07:00Contains() method in Beta 2New info from official LINQ forum. This time is the Contains() method the main actor. It will be released a new Contains() prototype in LINQ to SQL framework that accepts an object array. This will be translated in the SELECT ... IN ... statement allowing us to select just the value included in the array.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-3601392108315922227?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-80121467616309111142007-06-06T09:18:00.000-07:002007-06-08T02:36:24.900-07:00CommandTimeout property will be added to DataContext classReading the official forum and <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1693269&amp;SiteID=1">this</a> thread, Matt said that the CommandTimeout property will be added in the next release of LINQ to SQL.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-8012146761630911114?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-58476007146591982172007-06-02T03:27:00.000-07:002007-06-08T02:47:49.888-07:00New events added in Beta 2LINQ's Beta 2 will add some new events support. When you use SubmitChanges() the Validate event will be raised. Catching this event you will be able to validate your data before they will be inserted into the database.<br /><br />You also be able to implement:<br /><br />OnLoaded() -- called after loaded by DataContext<br />OnCreated() -- called any time an entity is constructed<br /><br />Thanks to Matt Warren for the info.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-5847600714659198217?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-2104342129731685872007-06-02T03:12:00.000-07:002007-06-08T02:41:52.235-07:00DataShape class will be renamed in beta 2As stated by Matt Warren in this <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1678307&amp;SiteID=1">thread</a> of the official LINQ forum the DataShape class will be renamed into <strong>DataLoadOptions</strong> and its property Shape will become <strong>LoadOptions</strong>.<br /><br />That's the reason: <em>"We had too many people thinking that the 'shape' was being enforced throughout the lifetime of the DataContext when it only realy controls the initial loading of the data. I still like 'Shape' better, but c'est la vie."</em><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-210434212973168587?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-33528054020493879862007-05-12T01:55:00.000-07:002007-05-12T02:00:33.689-07:00LINQ for Visual Basic 2005 will be complete only in Beta 2As declared by Amanda Silver (Lead Program Manager of Visual Basic team) in a couple of threads in the official forum, LINQ will be fully supported in VB only from the Orcas beta 2. Read more <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1335294&SiteID=1">here</a> and <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=855466&amp;SiteID=1">here</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-3352805402049387986?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-6811562373167710742007-05-09T04:49:00.000-07:002007-05-09T04:57:44.663-07:00LINQ for Visual C# 2005 Beta 1 updated samplesI have updated book's samples to be working with Orcas beta 1 release. You can take it <a href="http://www.ferracchiati.com/downloads/LINQ_for_VisualC_Sharp_2005_Beta1(source).zip">here</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-681156237316771074?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-18753968252912392452007-04-23T04:50:00.000-07:002007-04-23T05:00:09.370-07:00LINQ's VB samples for "Orcas" beta 1I wasn't still able to check them but Visual Basic team had released updated samples for LINQ contained in "Orcas" beta 1 release. You can download samples <a href="http://msdn2.microsoft.com/en-us/bb330936.aspx">here</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-1875396825291239245?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com2tag:blogger.com,1999:blog-36174381.post-25672462681129093402007-04-23T04:12:00.000-07:002007-04-23T04:47:22.069-07:00Linq To XML beta 1 changesIn this <a href="http://blogs.msdn.com/xmlteam/archive/2007/04/20/linq-to-xml-changes-in-orcas-beta1.aspx">post</a> you can read the LINQ to XML's changes introduced in the Visual Studio "Orcas" Beta 1 release.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-2567246268112909340?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-53763768321964368252007-04-20T04:07:00.000-07:002007-04-20T04:11:32.112-07:00Visual Studio "Orcas" beta 1 samplesYou can download updated samples for beta 1 <a href="http://download.microsoft.com/download/b/4/2/b42b8f50-6ef3-451c-93f4-793f3ec1eb53/LinqSamples_02.msi">here</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-5376376832196436825?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-79562270750314692672007-04-20T03:53:00.000-07:002007-04-20T03:58:06.041-07:00Visual C#/VB Express "Orcas" editionsSimultaneously with Visual Studio "Orcas" beta 1 release, Microsoft has released Visual Express "Orcas" editions. You can take the C# edition <a href="http://msdn.microsoft.com/vstudio/express/future/visualcsharp/default.aspx">here</a> and the VB edition <a href="http://msdn.microsoft.com/vstudio/express/future/vb/default.aspx">here</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-7956227075031469267?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-39873333426821630562007-04-20T00:24:00.000-07:002007-04-20T00:27:22.387-07:00Visual Studio Orcas Beta 1 availableHi guys,<br />at last, Visual Studio Orcas reaches beta 1: you can download <a href="http://msdn2.microsoft.com/en-us/vstudio/aa700831.aspx">here</a>. Just after I have it I'll test the samples from my book and I'll let you know what is changed. Stay here!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-3987333342682163056?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-78274516740569414362007-03-07T04:28:00.000-08:002007-04-22T03:28:14.827-07:00May 2006 to March 2007 comparison listDuring the conversion I noted all the differences I found. Here follows the list:<br /><br />===========================<br />CHAPTER 1 - Linq to Object<br />===========================<br />- <strong>System.Query</strong> namespace has been substituted with <strong>System.Linq</strong><br />- <strong>System.Expressions</strong> namespace has been substituted with <strong>System.Linq.Expressions</strong><br />- During the object's creation the compiler doesn't infer the data type anymore.<br /><br />For example:<br /><br /><span style="font-family:courier new;font-size:85%;"><strong>List<role> roles = new List<role> {</strong></span><br /><span style="font-family:courier new;font-size:85%;"><strong>{ ID = 1, RoleDescription = "Manager" },</strong></span><br /><span style="font-family:courier new;font-size:85%;"><strong>{ ID = 2, RoleDescription = "Developer" }</strong></span><br /><span style="font-family:courier new;font-size:85%;"><strong></strong></span><span style="font-family:courier new;font-size:85%;"><strong>};<br /></strong></span><br />The snippet code above produces a compilation error.<br />You have to change to:<br /><br /><span style="font-family:courier new;font-size:85%;"><strong>List<role> roles = new List<role> {</strong></span><br /><span style="font-family:courier new;font-size:85%;"><strong>new Role { ID = 1, RoleDescription = "Manager" },</strong></span><br /><span style="font-family:courier new;font-size:85%;"><strong>new Role { ID = 2, RoleDescription = "Developer" }</strong></span><br /><span style="font-family:courier new;font-size:85%;"><strong>};<br /></strong></span><br />- <strong>Sequence</strong> static class has been substituted with <strong>Enumerable</strong><br />- The <strong>EqualAll</strong> method has been substituted with <strong>SequenceEqual</strong> method<br />========================================<br />CHAPTER 2 - Linq to Sql/Linq to DataSet<br />========================================<br />- In order to use Linq To Sql you must add a reference to the new <strong>System.Data.Linq.dll</strong> assembly located into the <strong>C:\WINDOWS\Microsoft.NET\Framework\v3.5.20209</strong> path<br />- <strong>InsertMethod</strong>, <strong>UpdateMethod</strong> and <strong>DeleteMethod</strong> attributes have been removed<br />- <strong>StoredProcedureResult</strong> and <strong>StoredProcedureMultipleResult</strong> classes have been removed. When your stored procedure returns a composed type the designer converts it into a new class<br />- <strong>ExecuteStoredProcedure<></strong> method has been substituted with <strong>ExecuteMethodCall<></strong><br />- The T-SQL User defined functions are called using the new <strong>ExecuteMethodCall</strong> method instead of the old <strong>Expression.Call</strong> (that is still present in the framework)<br />- The new Linq to Sql designer generates a <strong>read-only property</strong> when it encounters a <strong>primary key column</strong>. If you wrote some code to remove a record from that table you can't call the Remove method specifying the ID anymore<br />- When an <strong>optimistic concurrency</strong> error occurres you receive a new exception: <strong>"System.Data.Linq.ChangeConflictException: Row not found or changed."</strong><br />- The <strong>LocalTransaction</strong> property has been renamed into <strong>Transaction</strong><br />- The <strong>AcceptChanges</strong> and <strong>RejectChanges</strong> methods have been removed<br />- The <strong>GetResults()</strong> method used in conjuction with <strong>StoredProcedureMultipleResult</strong> class to get part of the global query result has been removed (accordingly to the <strong>StoredProcedureMultipleResult</strong> deletion)<br />- The <strong>Including()</strong> method used to prefetch data and avoinding the continuos polling to the database to retrieve related data has been substituted with the <strong>LoadWith<></strong> generic method provided by the new DataShape class. The new class provides a new method called <strong>AssociateWith<></strong> useful to define a subquery against the prefetched records<br />- The <strong>methods to load a DataSet</strong> with a Linq to Sql query have been removed. You have to use your own methods such as suggested in this <a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2007/03/03/9144.aspx">post</a><br />- The <strong>CopyToDataTable</strong> method has been added to load a DataTable from a Linq to DataSet query. It provides two versions: the former returns a new DataTable and doesn't accept parameters while the latter fills an existing DataTable provided as parameter plus a second parameter indicating the LoadOption options (i.e. overwrite records)<br />- The <strong>ToQueryable()</strong> method has been substituted with <strong>AsEnumerable()</strong><br />- The <strong>ToBindingList()</strong> method has been removed. You can provide the Linq query to the DataSource property directly<br />========================<br />CHAPTER 3 - Linq to Xml<br />========================<br />- In order to use Linq To Xml you must add a reference to the new <strong>System.Xml.Linq.dll</strong> assembly located into the <strong>C:\WINDOWS\Microsoft.NET\Framework\v3.5.20209</strong> path<br />- <strong>ElementsBeforeThis</strong> and <strong>ElementsAfterThis</strong> methods have been renamed into <strong>ElementsBeforeSelf</strong> and <strong>ElementsAfterSelf</strong>, respectively<br />- <strong>SetElement</strong> has been renamed into <strong>SetElementValue</strong><br />- <strong>SetAttribute</strong> has been renamed into <strong>SetAttributeValue</strong><br />- <strong>ReplaceContent</strong> has been renamed into <strong>ReplaceNodes</strong> (you can obtain the same result using <strong>ReplaceAll</strong>)<br />- <strong>RemoveContent</strong> has been renamed into <strong>RemoveNodes</strong> (you can obtain the same result using <strong>RemoveAll</strong>)<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-7827451674056941436?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0tag:blogger.com,1999:blog-36174381.post-33817212286665443052007-03-07T04:14:00.000-08:002007-03-07T04:27:33.445-08:00The new code for the Linq for Visual C# 2005 bookI have converted the Linq for Visual C# 2005 samples to work with the Orcas March 2007 CTP release.<br />You can download <a href="http://www.ferracchiati.com/downloads/Linq_for_Visual_C_Sharp_2005(March_2007_CTP).zip">here</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/36174381-3381721228666544305?l=www.ferracchiati.com%2Fdefault.htm'/></div>Fabio Claudio Ferracchiatihttp://www.blogger.com/profile/12889934769011906714noreply@blogger.com0