Skip to content

Way to retrieve generated identity values for bulk inserted entities? #8

Open
@lqxdave

Description

@lqxdave

With straight EF Core, calling MyDbContext.MyEntities.AddRange(someEntities) followed by MyDbContext.SaveChanges() results in someEntities having their Id column being populated with those generated by Sql Server; is there any way to accomplish the same with MyDbContext.BulkInsertAsync<MyEntity>()? Note that I am using version 2.0 of your library.

On an unrelated note, any plans to add Upsert functionality to 2.0, or is that only supported with EF 5.0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions