Click here to Skip to main content
15,897,518 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralWow, what ever Pin
led mike1-Dec-08 5:22
led mike1-Dec-08 5:22 
GeneralRe: Wow, what ever Pin
Paul Conrad1-Dec-08 6:01
professionalPaul Conrad1-Dec-08 6:01 
GeneralRe: Wow, what ever Pin
led mike1-Dec-08 7:54
led mike1-Dec-08 7:54 
GeneralRe: Wow, what ever Pin
Paul Conrad1-Dec-08 7:57
professionalPaul Conrad1-Dec-08 7:57 
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 
Consider the following simplified case where I store several users at once.

Transaction trans = cn.begintrans
foreach (name in nameArray) {
Person p = new Person(name);
Person.Insert()
}
trans.commit();

I want Person.Insert() to:
- Use the transaction created. (I can't access the transaction object inside the insert() call)
This way, the users are not created when the BL produces an error.

- Still make it reusable in a non transactonal context (such as creating a single user)

I could do it with a using statment using a transactionscope instead, but actually I am wondering how it was done before .NET 2.0?
How can I make the insert method available in transactional and none transactional context without violating three tier principles?
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 
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 

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.