Get primary key values in Table Adapter

1

How can I get all the primary key values in a Table Adapter .

One by one I can get at the time of the insert with this code:

PegaIdOrc = orcTableAdapter.GetDataByMaxIDOrc().
            Rows[0]["Expr1"].ToString();

But when I try to get all the values of a query, it returns me the pre-insertion numbers like this: -1, -2, -3...

I've tried a foreach with the row count, but the return is always these negative numbers.

    
asked by anonymous 17.02.2016 / 16:07

0 answers