LINQ in Action roller

LINQ Dynamic sort for ODS function?

I am testing LINQ in Orcas March CTP with Linq to SQL on Northwind.. I was trying to extend the generated Customer class to add an ObjectDataSource select with a sort parameter, thus: Code Snippet <DataObjectMethod(DataObjectMethodType.Select)> _ Public Shared Function SelectAll( _ ByVal startRow As Integer , _ ByVal maxRows As Integer , _ ByVal sortBy As String ) As List( Of Customer) 'datacontext Dim db As New NorthwindDataContext() 'get customers (fixed sort) Dim q = ( From c In db.Customers Read More...
Published Thursday, April 19, 2007 7:15 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication