Browse Folders

LINQ in Action Source Code

File Details
Downloads: 15684 File Size: 4.6MB
Posted By: Fabrice Marguerie Views: 11069
Date Added: Mon, Dec 10 2007
Complete source code for the LINQ in Action book, in both C# and VB.

Comments
 

Iwan said:

Linq mempermudah developer dalam pengembangan sostware.terima kasih
Thu, Jan 31 2008 0:01
 

Giocanni said:

Is the code runnable also? or is just a serie of code examples? for ex in the chapter 6-8 it tells me that I can't run a class application
Sat, Mar 08 2008 4:46
 

Fabrice Marguerie said:

Everything should compile and run fine. I double-checked, and everything runs fine for me. Did you set the Chapter06to08 project as the startup project? Maybe that this is not the default startup project. It could be that a class library project (Common or ObjectDumper) is selected as the startup project by default.
Sat, Mar 08 2008 6:05
 

Giocanni said:

Yes, everything works now! It wasn't the default startup project like you said... thx
Sat, Mar 08 2008 7:11
 

Se3ker385 said:

Thanks! :D
Mon, Mar 10 2008 12:32
 

Bogg said:

I wonder how can I find the dll reference for ObjectDumper Class shown in this Book's examples.
Tue, Mar 11 2008 0:42
 

Fabrice Marguerie said:

ObjectDumper is provided by Microsoft in the samples included with Visual Studio 2008. We also include the source code for this class in the download you can find on this page.
Tue, Mar 11 2008 11:27
 

csdk said:

Can I get an electronic copy of table 3.2? I want to present this to my team. THanks
Sat, Mar 29 2008 22:03
 

Fabrice Marguerie said:

csdk, see here : http://msdn2.microsoft.com/en-us/library/bb882642.aspx
Mon, Mar 31 2008 9:10
 

Rene said:

I am getting errors while trying to attach the “lia.mdf” and “nothwind.mdf” databases provided in the download to SQL Express 2008. Perhaps I am doing something wrong but if this error is expected because the databases are meant to work under sql server 2005 and not under 2008 then it would be nice if the download also included databases compatible with 2008 for those of us using this sql server version. Thank you.
Wed, Nov 26 2008 12:42
 

Fabrice Marguerie said:

Rene, The databases have been created with SQL Server 2005, but you should be able to attach them to SQL Express 2008. I'm not able to test this at the moment. I'll try tomorrow. What errors do you get? Fabrice
Wed, Nov 26 2008 13:22
 

Rene said:

Dang it, I knew I should have fully experimented with the issue regarding attaching the databases before posting. Anyway, the databases do attach to SQL server 2008 just fine. My problem was that I was copying the database files to the default folder where SQL 2008 stores the database files (C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA) and then trying to attach them from there and I was getting errors. Then I tried attaching the databases from a folder when I had full permissions and thing worked ok. Not sure why they database files won’t attach if they are located in the SQL server default folder but I bet it has something to do with permissions. The error message that you get just says that there was an error and to click at some nonexistent link for more information. I guess I shouldn’t be attaching the database files from the SQL server default database folders anyway because that is probably a bad practice but regardless off…. That was the cause of the problem. Sorry and thanks for the quick response.
Wed, Nov 26 2008 13:53
 

Fabrice Marguerie said:

Thank you for explaining what you were doing. It may help someone in the same situation. One more example of a useless SQL Server error message...
Wed, Nov 26 2008 14:10
 

bhaveshdave said:

I am not able to download the file. Please check it and repair it. thank you
Mon, Mar 16 2009 11:55
 

Fabrice Marguerie said:

What kind of error do you get? The download works fine here.
Mon, Mar 16 2009 12:07
 

Zishumba said:

What a good book. I am struggling using linq on an oracle database. I am using strongly typed datasets. How do u insert, update a strong typed dataset. Thanks
Tue, May 05 2009 3:20
 

Fabrice Marguerie said:

LINQ to DataSet is covered in chapter 14, which is available as a free PDF from http://manning.com/marguerie However, inserting into and updating a DataSet is out of the scope of this book because this is basic .NET and it is not related to LINQ.
Tue, May 05 2009 3:49
 

Zishumba said:

Thanks. But i am not sure if i am right to say according to your answer i cant avoid using adapters for inserting and updating. ie calling adapter.Update(). Secondly, i was looking at your chapter 14 sample code FillDataSetUsingLinqToSql1(LinqBooksDataSet dataSet). Why doesnt the query return a datatable? Wouldnt it have been easy that way since your iterator variable automatically becomes a datarow. I tried with Northwind database. With the product table it gives an error on categoryID though i did it exactly the same way you did dataSet.Book.AddBookRow(book.ID, book.Title, book.Subject, dataSet.Publisher.FindByID(book.Publisher).... Any help.
Tue, May 05 2009 5:48
 

Fabrice Marguerie said:

Zishumba, please ask your questions in the book's forum. It will be easier to follow up, and everybody will be able to see your questions and help you. Please provide there code samples of what you're trying to do. Please, also include the details about the errors you get, otherwise we won't be able to help you. Thanks The forum is at http://www.manning-sandbox.com/forum.jspa?forumID=302
Tue, May 05 2009 6:37
 

Zola said:

can any one help to extract the source code as i can't extract the files it shows message box saying "Please insert the last dist of the Multi-Volume set and click ok to continue."
Wed, Jun 24 2009 9:02
 

Fabrice Marguerie said:

Zola, what are you using to extract the files? It works with WinZip and WinRar for me.
Wed, Jun 24 2009 9:42
 

Zola said:

I'm using WinZip
Thu, Jun 25 2009 0:41

Add Comment

Name (required)
Web Site (optional)
Comment (required)
Add