0

使用 插入新记录时table.newTableRow,是否有可能获得autoId

这是我的代码:

Dim famtbl As New DataSet1.FamiliesDataTable
Dim newFam = famtbl.NewFamiliesRow

With newFam
    .Address = txt_Address.Text
    .City = txt_City.Text
    .State = txt_State.Text
    .Zip = txt_Zip.Text
    .Country = txt_Country.Text
End With
4

1 回答 1

0

不,在将 ID 提交给数据库之前,您不会知道该 ID。

于 2012-10-22T16:16:29.580 回答