sábado, 8 de noviembre de 2014

Date example in LinQ

Dim tblinvoices As List(Of Invoice) = InvoiceDB.GetInvoices
        Dim tbllinq = From invoices In tblinvoices
                      Where invoices.InvoiceDate >= #12/1/2009# And
                        invoices.InvoiceDate <= #5/31/2010#
                    Select invoices.InvoiceNumber,
                        invoices.InvoiceDate,
                        invoices.InvoiceTotal

        Me.gvEjemplo.DataSource = tbllinq.ToList

No hay comentarios:

Publicar un comentario