I often have a use for a limited set of fields from a table (i.e., for an employee drop list, I don't need their address, phone, etc. only their ID and Name). How do you recommend doing this? In the past, I have created a function which returns a datatable but then its not strongly typed. I have also used strongly typed datasets but I would rather not use both Strataframe objects and Strongly Typed Datasets so I can keep everything consistant.
Thanks
Clay
SELECT my_Field1 FROM MyTable
Valid Reference from select statement aboveMyBO.my_Field1
Invalid Reference from select statement aboveMyBO.my_Field2 (will produce an error since the field is not in the table)
Thanks much.
I just create a method on the bo and select the fields I need.
Public Sub FillAllCustomerNames()
Me.FillDataTable("Select CustomerName,Cu_id from customer")
End Sub
This does leave the possibility that you can screw up be refencing a field that is on the bo but not contained in the uderlying datatable. This hasnt been an issue for me though.