Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. ADO.Net Transaction

ADO.Net Transaction

Scheduled Pinned Locked Moved C#
csharpdata-structurescollaborationhelpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    satsumatable
    wrote on last edited by
    #1

    Hi, I'm writing a generic DAL layer for my development team because we dont want to give access of connection to the developers. I'm stuck in terms of providing option to handle Transaction oriented queries. Could some one throw light? So, lets say I've 3 queries which have to be executed under one transaction. Since developer dont have access to Connection they can not create transactions. Shall I take array of queries and parameters from client and execute within the Transaction Block? Is it a right approach. Note:- I'm not using ORM hence I can not use Command Patterns also. Thanks

    T P 2 Replies Last reply
    0
    • S satsumatable

      Hi, I'm writing a generic DAL layer for my development team because we dont want to give access of connection to the developers. I'm stuck in terms of providing option to handle Transaction oriented queries. Could some one throw light? So, lets say I've 3 queries which have to be executed under one transaction. Since developer dont have access to Connection they can not create transactions. Shall I take array of queries and parameters from client and execute within the Transaction Block? Is it a right approach. Note:- I'm not using ORM hence I can not use Command Patterns also. Thanks

      T Offline
      T Offline
      thatraja
      wrote on last edited by
      #2

      Also you have asked the question in QA section too http://www.codeproject.com/Questions/135220/ADO-Net-with-Transcations.aspx[^] Also found 1 answer with that. Please don't post your question in many places here otherwise all will be ignored.

      thatraja |Chennai|India|


      Brainbench certifications
      Univotes are like kid's kisses don't reject it :-)
      Do what you want quickly because the Doomsday on 2012 :-)
      My childhood story

      T 1 Reply Last reply
      0
      • T thatraja

        Also you have asked the question in QA section too http://www.codeproject.com/Questions/135220/ADO-Net-with-Transcations.aspx[^] Also found 1 answer with that. Please don't post your question in many places here otherwise all will be ignored.

        thatraja |Chennai|India|


        Brainbench certifications
        Univotes are like kid's kisses don't reject it :-)
        Do what you want quickly because the Doomsday on 2012 :-)
        My childhood story

        T Offline
        T Offline
        tauruswu
        wrote on last edited by
        #3

        i'am english so pool

        1 Reply Last reply
        0
        • S satsumatable

          Hi, I'm writing a generic DAL layer for my development team because we dont want to give access of connection to the developers. I'm stuck in terms of providing option to handle Transaction oriented queries. Could some one throw light? So, lets say I've 3 queries which have to be executed under one transaction. Since developer dont have access to Connection they can not create transactions. Shall I take array of queries and parameters from client and execute within the Transaction Block? Is it a right approach. Note:- I'm not using ORM hence I can not use Command Patterns also. Thanks

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          The application shouldn't know that multiple queries are required -- it should just call one API method and pass in the data. What happens inside that method might involve a transaction.

          PlaceOrder ( Customer , Item )
          Begin transaction
          Insert order
          Insert invoice
          Adjust inventory
          Commit transaction

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups