Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!
Public Function PopulateWorkItem() As List(Of WorkItem) Dim db As New DBAccess() db.AddParameter("@TypeID", ItemTypeID) Dim sdr As SqlDataReader = db.ExecuteReader("spGetWorkItemsByWeekId") Dim wi As New List(Of WorkItem) While sdr.Read wi.Add(New WorkItem) wi(wi.Count - 1).ItemID = sdr("ItemID").ToString wi(wi.Count - 1).WorkDate = FormatDateTime(CDate(sdr("WorkDate")), DateFormat.ShortDate) wi(wi.Count - 1).Name = sdr("Name").ToString wi(wi.Count - 1).Street = sdr("Street").ToString End While [b] 'When I return this it sends the entire object and I only want to send the properties that I have just queried[/b] Return wi End Function
<Required> _ <Display(Name:="Street")> _ Public Property Street() As String Get Return m_Street End Get Set(value As String) m_Street = value End Set End Property
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.