News in the Category: XLinq Subscribe to the rss of this category.

Total posts: 716 | Sort by Views | Sort by Hits

LINQ in Action forum

Fabrice's weblog, December 3, 2007
Views: 20,860 | Hits 257

Did you know that a forum dedicated to LINQ in Action is available? It was already available from the book's web page at Manning, but we've just added a link to it in the top menu of this site so it c...

LINQ Error: String must be exactly one character long.

Pencil Bros. Geology, Inc., October 29, 2007
Views: 16,793 | Hits 108

When working with some Linq today, I kept getting the following error: String must be exactly one character long. This one had me scratching my head for a while. Turns out the problem was in the Linq...

Creating a 3 tier application using LINQ

Granville Barnett, April 18, 2007
Views: 12,492 | Hits 160

Every example of using LINQ I have seen (including my own articles!) have used inline queries based upon the standard query operators that ship as part of C# 3.0, to be more exact .NET 3.5.  Whil...

LINQ: difference between Single(), First(), and Take(1)

smarx.com - developing for the new web, November 16, 2006
Views: 10,575 | Hits 578

LINQ provides a few different methods that return you a single object: Single(), First(), and Take(1). It took me a while, but I think I understand the difference: Single() operates on a collectio...

Using Stored Procedures in LINQ to SQL

Granville Barnett, January 8, 2007
Views: 8,658 | Hits 62

Something that always floats around when talking about LINQ to SQL is that its all well and good making ad hoc queries to a database using some form of expressive LINQ syntax, however, its a cavalier ...

LINQ: Sequence contains no elements. Extension methods to the rescue.

the telerik blogs, October 17, 2008
Views: 8,375 | Hits 47

When you start playing with LINQ queries over sequences of elements (e.g. getting min / max value for enumerable source) sooner or later you will come across this one -- the InvalidOperationException ...

Converting a LINQ to Entities query to a DataTable

Julia Lerman Blog - Dont Be Iffy..., September 7, 2007
Views: 7,875 | Hits 1,350

I wrote this in response to a question on the ADO.NET Orcas forums and thought I would copy it here. Note that Danny Simmons writes more information about Entity Framework and DataTables in the thre...

Obtain the Identity of a New Row Using LINQ

Jason N. Gaylords Blog, May 20, 2008
Views: 6,078 | Hits 106

It's actually pretty easy and user friendly to obtain the value of the identity column using LINQ. After you create your object and insert it on submit, you can call the identity column's property on ...

LINQ to SQL - which tool to generate your DAL?

Granville Barnett, April 8, 2007
Views: 5,570 | Hits 77

I thought I would quickly run over the two tools at present that exist to generate an abstract DAL for your applications: SQLMetal.exe - a command line tool. LINQ to SQL File - a Visual Studio desig...

LINQ Row Number Column

Vault of Thoughts, April 4, 2008
Views: 5,472 | Hits 706

Today I needed to add an special field to my LINQ query. A kind of Row Number column. Actually it was not a row number nor was it a column since LINQ deals with objects, but since it was used for pre...

How to implement IQueryable (by Kevin Halverson)

The Visual Basic Team, July 11, 2007
Views: 4,884 | Hits 238

Heres a link to a post I just finished on How to implement IQueryable (create a custom Linq provider). http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iqueryable.aspx My exam...

Join Lists with LINQ - SharePoint 2010

EggHeadCafe.com New Articles, February 15, 2010
Views: 4,737 | Hits 7

One common request for LINQ to SharePoint is support for joins across Lists. This article will show you how to use the Join() operator in efficient way. Show here by an example that joins two lists, a...

ObjectQuery, LINQ to Entities and IQueryable

Julia Lerman Blog - Dont Be Iffy..., April 2, 2008
Views: 4,650 | Hits 729

The return type of a LINQ query is an IQueryable, even a LINQ to Entities query. Here is a screenshot of a LINQ to Entities query at design time (code is NOT being debugged). But when the query has...

LINQ Cookbook, Recipe 9: Dynamic Sort Order

The Visual Basic Team, October 17, 2007
Views: 4,485 | Hits 559

Ingredients:          Visual Studio 2008 (Beta2 or Higher)   Categories: LINQ-To-XML   Introduction: You can use the Order By clause to easily sort th...

System.Data.Linq.Binary is not XmlSerializable

Rick Strahls WebLog, July 17, 2009
Views: 4,478 | Hits 148

So I ran into an annoying problem today with an entity that has a timestamp. When imported LINQ to SQL will create a Binary type for this the timestamp and as it turns out this type does not serialize...

Working with XML Data Using LINQ, a TreeView, and a ListView :: Displaying Data

4GuysFromRolla.com Headlines, April 23, 2008
Views: 4,419 | Hits 54

With more and more data being stored in XML, web applications today commonly need some way to view and edit the data stored in an XML file from a web page interface. If the XML data is relatively "f...

RadTips, Episode 4: Client-Side Filtering in the RadGrid

the telerik blogs, August 23, 2008
Views: 4,375 | Hits 9

I am pleased to bring you another exciting episode of RadTips. In this episode, I show how to enable filtering when using the new client-side data binding feature of the RadGrid for ASP.NET AJAX (Q2...

LINQ 101 Examples with Telerik OpenAccess ORM

the telerik blogs, June 16, 2009
Views: 4,358 | Hits 27

We all know that today LINQ is the most popular and easy way for processing data in the .NET community. In fact you can use almost all data sources you might think of: plain objects, XML or relational...

Aggregate Functions in LINQ

Jason N. Gaylords Blog, May 1, 2008
Views: 4,354 | Hits 95

I found a great post which summarizes aggregate functions in LINQ. It includes examples for Average, Sum, and Count. Check it out at http://www.dev102.com/2008/04/16/how-to-use-aggregate-functions-wit...

Expression of type 'System.Data.Linq.Table(Of xxx)' is not queryable

WebLog of Ken Cox [MVP], December 29, 2007
Views: 4,295 | Hits 156

I don't recall getting this error so often in Visual Web Developer 2008 Beta 2 or the release candidate: Expression of type 'System.Data.Linq.Table(Of xxx)' is not queryable. Make sure you are not mis...

Converting From System.Data.Linq.Binary to String and Back

peterkellner.net, November 8, 2009
Views: 3,875 | Hits 77

  Just a quick post in case anyone is wasting 10 minutes figuring out how to do this.  For me, this came up because in Sql Server 2008, NVARCHAR(MAX) is 4000 characters and I needed... This...

Linq, DataContext, and Transactions

The Code Project Latest Articles, April 5, 2008
Views: 3,588 | Hits 295

How to set Linq Transaction levels using a custom base DataContext class...

Enumerating Through XML Elements Using LINQ-to-XML

Scott on Writing, September 28, 2010
Views: 3,540 | Hits 16

4Guys reader Dan D. recently emailed me with an inquiry surrounding my article series, Building a Store Locator ASP.NET Application Using Google Maps API, specifically on how to access a different set...

Fix XML encoding in LINQ to SQL files to open up in RTM designer window

Julia Lerman Blog - Dont Be Iffy..., November 21, 2007
Views: 3,492 | Hits 227

When opening a dbml file created in a pre-RTM version of Visual Studio 2008, you will probably see this error message: Cannot load '[filepath].dbml': Error encountered, check Error List window for d...

Only parameterless constructors and initializers are supported in LINQ to Entities

Code Climber, August 25, 2010
Views: 3,433 | Hits 58

Back from the holiday an nice surprise was awaiting for me: Ive to finalize (as in make it work) an application that someone that left the company developed more than one year ago. Among the other pro...

Query Notifications and LINQ to SQL - Well I'll be, you *can* do it (with caveats)

Julia Lerman Blog - Dont Be Iffy..., September 15, 2007
Views: 3,418 | Hits 259

I'm ashamed that this is STILL on my to-do list as I have probably written and presented more about Query Notification than most people. But I see via Roger Jennings blog that Ryan Dunn has the key o...

LINQ in Action samples in LINQPad

Fabrice's weblog, June 6, 2009
Views: 3,189 | Hits 418

Do you know LINQPad? It's a really simple but great tool for testing LINQ queries. Not only that, but it can be used to test all kinds of C# and VB code snippets. Another great thing about LINQPad ...

Using LinqPad with Telerik OpenAccess ORM

the telerik blogs, July 23, 2009
Views: 3,175 | Hits 30

LinqPad is a nice and popular query analyzer made to test LINQ queries: whether it is Linq To Sql, Linq to Objects or some other flavor, you will be able to play in a nice way with it. Sadly it does n...

Choosing LINQ to Entities vs Entity SQL vs. EntityClient

Julia Lerman Blog - Dont Be Iffy..., October 17, 2007
Views: 3,169 | Hits 248

The title is a bit of a misnomer and not comparing apples to apples. To do it right would have been longer. The real comparison is "Choosing LINQ to Entities vs. Entity SQL+Object Services vs. Entit...

LINQ to XML in action

XmlTeams WebLog, August 4, 2006
Views: 3,127 | Hits 321

We're starting to see some real applications that demonstrate how easy it is to use LINQ to XML (I'm just gonna keep abbreviating it "XLinq") to get real XML work done without too much sweat or tear...

Mashups with SyndicationFeed and LINQ

K. Scott Allen, March 17, 2008
Views: 3,093 | Hits 284

I was experimenting with the new SyndicationFeed class in 3.5 earlier this year and devised a mashup LINQ query: string[] feedUrls = { "http://www.OdeToCode.com/blogs/scott/rss.aspx",   ...

Dynamic Query with Telerik OpenAccess

the telerik blogs, January 20, 2010
Views: 3,041 | Hits 8

With the introduction of LINQ the concept of querying data became a first-class language construct in C# and Visual Basic.  LINQ enables to you write type-safe queries which are checked during co...

LINQ To Objects for .NET Framework 2.0 applications

Patrik Löwendahls shout, April 1, 2008
Views: 3,022 | Hits 76

Roger just made a library with extension methods for LINQ available: http://rogeralsing.com/2008/03/31/linq-to-objects-for-net-2-available/ In his comments there is a link to another project that has ...

10 resources to learn Moq

Code Climber, October 23, 2009
Views: 2,966 | Hits 157

Last week I described the stack Ill be using to develop my new ASP.NET MVC project, and I said I was going to use RhinoMocks as mocking framework. Well, it later turned out that some tests were using ...

LINQ to SQL and WCF

Julia Lerman Blog - Dont Be Iffy..., March 18, 2007
Views: 2,955 | Hits 630

From the forums (this thread): A future version of SqlMetal.exe will generate DataContract and DataMember attributes on your entities for you. Putting them on the DataContext won't work because the D...

Dynamic LINQ (Part 1: Using the LINQ Dynamic Query Library)

ScottGus Blog, January 8, 2008
Views: 2,932 | Hits 221

LINQ (language integrated query) is one of the new features provided with VS 2008 and .NET 3.5.  LINQ makes the concept of querying data a first class programming concept in .NET, and enables ...

LINQ Syntax and Linq-to-SQL

Dino Espositos WebLog, October 4, 2007
Views: 2,897 | Hits 167

Linq-to-SQL translates standard query operators of LINQ into T-SQL commands for the versions of SQL Server supported by the ADO.NET 3.5 managed provider. Although a lot of understandable similarities ...

An Extensive Examination of LINQ: Using the Query Syntax

4GuysFromRolla.com Headlines, April 15, 2009
Views: 2,877 | Hits 33

LINQ's standard query operators provide dozens of built-in techniques for programmatically enumerating, aggregating, selecting, and filtering data. These standard query operators are implemented as e...

Use LINQ Aggregate to Multiply a Series of Digits

Steven Smith, September 6, 2009
Views: 2,869 | Hits 316

The LINQ Aggregate() extension method uses a Func<int, int, int> to operate on items in a series.  If you want to use it, for example, to return the product of each value with its successor...

LINQ Standard Query Operators Cheat Sheet

AspNetResources.com articles, news and updates, December 17, 2007
Views: 2,801 | Hits 212

Lately, I’ve been spending a lot of time with LINQ retrofitting custom collections of days past to become LINQ-ified. I dug through the somewhat outdated articles on MSDN, blogs and 101 LINQ Sam...

Codeless client-side data-binding for your ASP.NET AJAX DataGrid?

the telerik blogs, October 20, 2008
Views: 2,792 | Hits 15

With RadControls for ASP.NET AJAX Q3 Beta we have provided great client-side data-binding improvement for the grid and now you can bind your data to any web service or page method completely codeless:...

DLinq: Playing with knives.

Sahil Malik [MVP], April 5, 2006
Views: 2,775 | Hits 89

Allrighty, that's the best way I can describe DLinq. It's a lot of power, but if you're not careful, you'll definitely cut yourself. So here goes. Lets begin by setting up a database, lets keep things...

LINQ in Action final PDF ebook available!

Fabrice's weblog, January 21, 2008
Views: 2,745 | Hits 60

The PDF of our LINQ book has been finalized! You can buy it on Manning's website for $27.50.There, you'll also find the following documents:About This BookTable of ContentsPrefaceForewordIndexWe also ...

Parsing WordML using Linq to XML

Fabrice's weblog, August 3, 2006
Views: 2,716 | Hits 313

Eric White, Programming Writer for XLinq, MSXML, and XmlLite, shows how he used Linq to XML (XLinq) to query Word documents.This is good example to get an idea of where Linq will help us. Linq comes w...

LINQ to SQL vs. Entity Framework

Julia Lerman Blog - Dont Be Iffy..., April 4, 2007
Views: 2,677 | Hits 286

A recent LINQ forum question asked about the differences between Linq to SQL and the Entity Framework. This is the response that I wrote and thought I would surface it in my blog: Besides that Linq ...

Introducing Linq to Amazon

Fabrice's weblog, June 26, 2006
Views: 2,663 | Hits 273

As an example that will be including in the Linq in Action book, I've created an example that shows how Linq can be extended to query anything.This example introduces Linq to Amazon, which allows quer...

LINQ or Lync?

Fabrice's weblog, October 2, 2010
Views: 2,659 | Hits 70

There's a new "link" from Redmond. It's not LINQ this time, but Lync.Isn't it great to have two names colliding in the Microsoft world?Is someone working on LINQ to Lync? Cross-posted from http://li...

RadTips, Episode 6: Using the LinqDataSource in your RadGrid for ASP.NET AJAX

the telerik blogs, September 18, 2008
Views: 2,626 | Hits 5

Welcome back to another episode of RadTips, a series of episodes offering tips and tricks for using Telerik's RadControls. If you've missed previous episodes, be sure to c...

Dynamic Searching using LINQ - Dataset + Joins

The Visual Basic Team, July 11, 2009
Views: 2,620 | Hits 112

About two years ago I posted some code that shows how to dynamically construct LINQ queries at runtime.  On average there's a couple questions per month about trying it in some edge case, and usu...

Screencast: Enable Server Mode using LINQ (ASPxGridView & XtraGrid)

The ASPx Blog, March 25, 2008
Views: 2,586 | Hits 109

In a previous post, I showed you how to use the powerful Server mode feature in ASPxGridView and XtraGrid against large datasets. The response to Server mode was so good that we've extended the wa...