Why do the following codes not give the same result?

sazeh nasr zagros 1 Reputation point
2021-12-09T06:06:26.283+00:00

hello
Why do the following codes not give the same result?

Dim TOPDS = DataSetTableAdaptersOrderPay.GetData.FindByID(-1)
TOPDS.GetTblSalaryChangeInfoRows.Count
result->0

TAOrderPay.GetData.FindByID(-1).GetTblSalaryChangeInfoRows.Count
result->3

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,398 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,580 questions
{count} votes