Getting new IDs after insert

前端 未结 4 1797
我在风中等你
我在风中等你 2020-12-07 16:46

I\'m inserting a bunch of new rows into a table which is defined as follows:

CREATE TABLE [sometable](
    [id] [int] IDENTITY(1,1) NOT NULL,
    [someval] s         


        
4条回答
  •  执念已碎
    2020-12-07 17:30

    And if you want the "control" in ADO.Net and get the ids assigned to childs and getting the ids back so that you can update your model: http://daniel.wertheim.se/2010/10/24/c-batch-identity-inserts/

提交回复
热议问题