I'll try to clarify this.
In SQLServer when defining a table, you can set a field to be a Primary Key. When this field is an integer, you can also set the Identity Specification to Yes. You can also specify a start value and an increment value.
Every time a record is added to this table, SQLServer determines the new key value by incrementing the identity field of the last record with the increment value specified.
SQLServer holds the last issued key value for this table somewhere in the master database. Therefor it should be possible to retrieve this value without accessing the table. I need the last record added, and therefor wanted to access it directly on its PK.
The question is:
Can LLBLGen provide the last key stored in case the table has Identity Specification set to Yes?