Showing posts with label LINQ. Show all posts
Showing posts with label LINQ. Show all posts

Monday, August 24, 2015

cannot-assign value to member xxx it does not define a setter

http://stevemichelotti.com/cannot-assign-value-to-member-xxx-it-does-not-define-a-setter/

Tuesday, April 14, 2015

Linq sum column in datatable

https://msdn.microsoft.com/en-us/library/bb534801.aspx

http://www.codeproject.com/Questions/627915/How-will-get-a-column-sum-of-datatable-using-LINQ

  Dim totalGenerated As Integer = dt.AsEnumerable().Sum(Function(dr) dr.Field(Of System.Int32)("fieldNameWhichIsANumber"))

Tuesday, April 7, 2015

Multiple Field Sorting by Field Names Using Linq

http://www.codeproject.com/Articles/280952/Multiple-Column-Sorting-by-Field-Names-Using-Linq


http://stackoverflow.com/questions/41244/dynamic-linq-orderby-on-ienumerablet

Monday, April 6, 2015

dynamic Linq sort

http://stackoverflow.com/questions/2841585/create-linq-to-entities-orderby-expression-on-the-fly

http://www.codeproject.com/Articles/29660/Dynamite-High-Performace-Dynamic-Sorting-Using-Exp?q=linq+sort+multiple+properties+

http://haacked.com/archive/2009/04/14/using-jquery-grid-with-asp.net-mvc.aspx/

http://visualstudiomagazine.com/blogs/tool-tracker/2013/10/dynamic-sorting-with-linq.aspx

http://stackoverflow.com/questions/9520221/sorting-a-list-of-object-with-vb-and-linq

http://stackoverflow.com/questions/388708/ascending-descending-in-linq-can-one-change-the-order-via-parameter

Friday, January 30, 2015

LINQ to object with data tables

http://www.vbforums.com/showthread.php?628877-RESOLVED-Select-distinct-values-from-a-DataTable

The key is to cast the table to an IEnumerable