Click here to Skip to main content
15,885,278 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Wow, what ever Pin
led mike1-Dec-08 8:01
led mike1-Dec-08 8:01 
GeneralRe: Wow, what ever Pin
Paul Conrad1-Dec-08 8:04
professionalPaul Conrad1-Dec-08 8:04 
AnswerRe: Releasing .Net programs Pin
Paul Conrad1-Dec-08 6:03
professionalPaul Conrad1-Dec-08 6:03 
QuestionDatabase transaction boundaries in three tier Pin
AliasElias27-Nov-08 2:32
AliasElias27-Nov-08 2:32 
AnswerRe: Database transaction boundaries in three tier Pin
Joe DiNatale1-Dec-08 5:58
Joe DiNatale1-Dec-08 5:58 
GeneralRe: Database transaction boundaries in three tier Pin
AliasElias2-Dec-08 1:47
AliasElias2-Dec-08 1:47 
AnswerRe: Database transaction boundaries in three tier Pin
CodingYoshi3-Dec-08 18:28
CodingYoshi3-Dec-08 18:28 
GeneralRe: Database transaction boundaries in three tier Pin
AliasElias3-Dec-08 21:37
AliasElias3-Dec-08 21:37 
Thank you for your reply. The sample I provided serves as an example a for what I'm trying to achieve, I don't consider it "correct".
You are right about the sample not being three tier also. I'm only looking for a way to make a method reusable in both a transactional and a non transactional context (such as insertPerson) without writing two versions of it...if that is possible?

You might write this method just to insert a person into the db and later on you notice that you need to reuse this method in a transaction elsewhere in your application. (for example to insert multiple persons at once) That would basicly mean you need to completely rewrite this method using a transaction for this purpose only.

On the other hand, you can use a transactionscope in .NET which automatically attaches the active transaction to any ADO.NET database call. This way you don't have to rewrite to insertPerson method to be used in transactions.

I'm just wondering what others do in such a situation? Rewrite any method they need to reuse in a transaction with another method signature (e.g. adding a transaction argument like you said.)...that just seems a bit redundant to me.
GeneralRe: Database transaction boundaries in three tier Pin
CodingYoshi4-Dec-08 4:17
CodingYoshi4-Dec-08 4:17 
AnswerRe: Database transaction boundaries in three tier Pin
Hesham Amin9-Dec-08 7:38
Hesham Amin9-Dec-08 7:38 
QuestionImplementing SOA in .Netframework Pin
Muneeb R. Baig25-Nov-08 22:22
Muneeb R. Baig25-Nov-08 22:22 
AnswerRe: Implementing SOA in .Netframework Pin
Rob Graham17-Dec-08 4:29
Rob Graham17-Dec-08 4:29 
QuestionWaterfall vs Agile and Project Estimates Pin
emunews25-Nov-08 9:21
emunews25-Nov-08 9:21 
AnswerRe: Waterfall vs Agile and Project Estimates Pin
Pete O'Hanlon25-Nov-08 9:58
mvePete O'Hanlon25-Nov-08 9:58 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
emunews25-Nov-08 10:00
emunews25-Nov-08 10:00 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
led mike25-Nov-08 11:55
led mike25-Nov-08 11:55 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
Pete O'Hanlon25-Nov-08 12:02
mvePete O'Hanlon25-Nov-08 12:02 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
emunews1-Dec-08 2:57
emunews1-Dec-08 2:57 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
Pete O'Hanlon1-Dec-08 3:18
mvePete O'Hanlon1-Dec-08 3:18 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
emunews1-Dec-08 3:22
emunews1-Dec-08 3:22 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
Pete O'Hanlon1-Dec-08 3:34
mvePete O'Hanlon1-Dec-08 3:34 
AnswerRe: Waterfall vs Agile and Project Estimates Pin
PH-MAT1-Dec-08 19:25
PH-MAT1-Dec-08 19:25 
AnswerRe: Waterfall vs Agile and Project Estimates [modified] Pin
Member 36807854-Dec-08 10:50
Member 36807854-Dec-08 10:50 
QuestionCode portability - .NET/Unix Pin
vsyam19-Nov-08 6:44
vsyam19-Nov-08 6:44 
AnswerRe: Code portability - .NET/Unix Pin
Wendelius19-Nov-08 8:06
mentorWendelius19-Nov-08 8:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.