TakeFive - what an extension


public static class LinqExtensions
{
public public static IQueryable<T> TakeFive(this IQueryable<T> query)
{
return query.Take(5);
}
}

Comments

Popular posts from this blog

IIS 7.5, HTTPS Bindings and ERR_CONNECTION_RESET

Table Per Hierarchy Inheritance with Column Discriminator and Associations used in Derived Entity Types

About the "The Controls collection cannot be modified because the control contains code blocks" symptom