Click here to Skip to main content
15,849,996 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralWow, what ever Pin
led mike1-Dec-08 6:22
led mike1-Dec-08 6:22 
GeneralRe: Wow, what ever Pin
Paul Conrad1-Dec-08 7:01
professionalPaul Conrad1-Dec-08 7:01 
GeneralRe: Wow, what ever Pin
led mike1-Dec-08 8:54
led mike1-Dec-08 8:54 
GeneralRe: Wow, what ever Pin
Paul Conrad1-Dec-08 8:57
professionalPaul Conrad1-Dec-08 8:57 
GeneralRe: Wow, what ever Pin
led mike1-Dec-08 9:01
led mike1-Dec-08 9:01 
GeneralRe: Wow, what ever Pin
Paul Conrad1-Dec-08 9:04
professionalPaul Conrad1-Dec-08 9:04 
AnswerRe: Releasing .Net programs Pin
Paul Conrad1-Dec-08 7:03
professionalPaul Conrad1-Dec-08 7:03 
QuestionDatabase transaction boundaries in three tier Pin
AliasElias27-Nov-08 3:32
AliasElias27-Nov-08 3: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 6:58
Joe DiNatale1-Dec-08 6:58 
GeneralRe: Database transaction boundaries in three tier Pin
AliasElias2-Dec-08 2:47
AliasElias2-Dec-08 2:47 
AnswerRe: Database transaction boundaries in three tier Pin
CodingYoshi3-Dec-08 19:28
CodingYoshi3-Dec-08 19:28 
GeneralRe: Database transaction boundaries in three tier Pin
AliasElias3-Dec-08 22:37
AliasElias3-Dec-08 22:37 
GeneralRe: Database transaction boundaries in three tier Pin
CodingYoshi4-Dec-08 5:17
CodingYoshi4-Dec-08 5:17 
AnswerRe: Database transaction boundaries in three tier Pin
Hesham Amin9-Dec-08 8:38
Hesham Amin9-Dec-08 8:38 
QuestionImplementing SOA in .Netframework Pin
Muneeb R. Baig25-Nov-08 23:22
Muneeb R. Baig25-Nov-08 23:22 
AnswerRe: Implementing SOA in .Netframework Pin
Rob Graham17-Dec-08 5:29
Rob Graham17-Dec-08 5:29 
QuestionWaterfall vs Agile and Project Estimates Pin
emunews25-Nov-08 10:21
emunews25-Nov-08 10:21 
AnswerRe: Waterfall vs Agile and Project Estimates Pin
Pete O'Hanlon25-Nov-08 10:58
subeditorPete O'Hanlon25-Nov-08 10:58 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
emunews25-Nov-08 11:00
emunews25-Nov-08 11:00 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
led mike25-Nov-08 12:55
led mike25-Nov-08 12:55 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
Pete O'Hanlon25-Nov-08 13:02
subeditorPete O'Hanlon25-Nov-08 13:02 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
emunews1-Dec-08 3:57
emunews1-Dec-08 3:57 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
Pete O'Hanlon1-Dec-08 4:18
subeditorPete O'Hanlon1-Dec-08 4:18 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
emunews1-Dec-08 4:22
emunews1-Dec-08 4:22 
GeneralRe: Waterfall vs Agile and Project Estimates Pin
Pete O'Hanlon1-Dec-08 4:34
subeditorPete O'Hanlon1-Dec-08 4: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.