Hi,
I am in new in LINQ query so my question is can we use AsNoTracking in insert statement?if yes give me the example.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satya KarkiRank #78 · 24.6K reputationPosted Apr 23, 2021, 6:10 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 23, 2021, 2:20 AM EDT
Rijwan AnsariRank #82 · 24.2K reputationPosted Apr 23, 2021, 5:49 AM EDT
Rajesh GamiRank #30 · 41.5K reputationPosted Jul 19, 2022, 2:03 AM EDT
We don't need AsNoTracking insert query,
However, if you return a large amount of entities, then you think about using the AsNoTracking method whenever you do a read operation to disconnect those entities.