vb.net - LINQ to SQL Order By fails -
im having little problem trying order row.timestamp sql datetime. believe picture says more thousand words, here one! :)
as can see mixes other hours in it, have googled allot before asking question here. appreciated.
thanks.
using db new basecontrollerentities dim query list(of tbllog) = (from row in db.tbllogs select row order row.timestamp ascending).tolist each item tbllog in query addtolistview(item) next end using private sub addtolistview(byval row tbllog) dim lvitem new listviewitem(row.timestamp) lvitem.subitems.add(row.logmessage) listview1.items.add(lvitem) end sub
Comments
Post a Comment