Skip to content

Clarification: what's the transaction scope? #9

@GiuseppePiscopo

Description

@GiuseppePiscopo

Hi there

I could not find any mention of what is the scope of those bulk operations.

In other words: say you run a number of bulk and non-bulk operations, like:

context.BulkInsert(entitiesList1);

context.AddRange(nonBulkList1);

context.BulkUpdate(entitiesList2);

var entity = context.MyEntities.First();
entity.MyField = 3;

context.BulkDelete(entitiesList3);

context.RemoveRange(nonBulkList3);

context.SaveChanges();

What happens when any of those steps fails? Normally, for non-bulk operations, nothing would be committed to DB. Does that hold for bulk operations as well?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions