Either by returning the auto - increment value as an output parameter of a stored procedure and mapping that to a column in a table , by returning the auto - increment value in the first row of a result set returned by a stored procedure or sql statement , or by using the 为了避免这种行为,建议在使用数据源中的自动递增列和dataset中的自动递增列时,在dataset中创建autoincrementstep为- 1且autoincrementseed为0的列,并确保数据源生成从1开始并以正步长值递增的自动递增标识值。