FindBy Method not generated
Hi,
I was reading the following:
Dim customersRow as DataSetClass.CustomersRow
customersrow = DataSetInstance.Customers.FindByCustomerID("ALFKI")
customersRow.CompanyName = "Updated Company Name"
customersRow.City = "Seattle"
Found In:
http://whidbey.msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_raddata/html/d5eea200-9bfa-4956-bf7c-08dd6fb6663c.asp
But my data set doesn't seem to have the FindBy methods generated - any idea how i'm supposed to go about getting a data row out of my dataset or datatableadapter to edit it?
Evan
[911 byte] By [
EvanY] at [2007-12-16]
Well i discovered that for variable names, who are the same as built in declarations, is used prefix "_" ...
So example:
| | Private Sub GetPassword(ByVal ID As String) Dim Row As DataSet_Operators.OPERATORRow Row = DataSet_Operators._OPERATOR.FindByOperatorID(ID) Dim Password As String = Row.Operator_AccessPassword.ToString End Sub |
Probably you can't find table _OPERATOR