Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6984543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:33:47+00:00 2026-05-27T18:33:47+00:00

Every time when I need to execute more than one query at work by

  • 0

Every time when I need to execute more than one query at work by L2S, I’m creating explicitly a transaction using TransactionScope. Today my colleague told me that, he never creating manually a transactions, because the L2S doing it at the SubmitChanges level. I was confussing, so I have done some sample code to test it. As I far I understood th result – he was right.
My question is, was it available from the beginning of linq to sql or was this added in some .net version/service pack?
In the net, there are plenty of samples of how to use a TransactionScope with the L2S, so I’m not sure that, every one of these people could missed it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:33:48+00:00Added an answer on May 27, 2026 at 6:33 pm

    Explicit TransactionScopes do have value if you want to wrap multiple queries and multiple calls to SaveChanges in a single Transaction…but if you are saving an object graph (which will generate multiple insert/update statements to the DB), all those statements will be wrapped in a Transaction automatically when SaveChanges is called.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to execute a SQL stored procedure every time before I query my
Every time I need to work with date and/or timstamps in Java I always
Every time I need to do something N times inside an algorithm using C#
I don't edit CSS very often, and almost every time I need to go
Every time I start working on a new J2EE web application, I need to
I need to have a newline every time I write to a file in
I need to start a program every time the user logs in, but I
I need to create an array of images in which, every time I tap,
I need to wake up a hibernated laptop at a given time every day.
I am using xcode with emacs. But everytime I start emacs, I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.