Hi ZahidMustafa-9099,
First, there is no definition of cascade insertion.
And you can try to use the EntityEntry.State property to set the state of just a single entity.
context.Entry(your entity).State = EntityState.Modified.
Please refer to this document.
More suggestions have been provided in this thread you can refer to.
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.