LINQ in Action roller

How to best test if a 1-many relationship is empty ?

Hi, What is the more performant way to know if a one-to-many relationship has 0 links? I have the feeling that calling Count==0 is not the best way because it would have to count each row and if there are many could be a poor solution. Would testing First on the collection be more appropriate? Thanks Nicolas Read More...
Published Sunday, April 27, 2008 6:27 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication