Click here to Skip to main content
15,513,762 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Async design Pin
Gerry Schmitz10-Nov-21 21:26
mveGerry Schmitz10-Nov-21 21:26 
AnswerRe: Async design Pin
Richard Deeming10-Nov-21 22:39
mveRichard Deeming10-Nov-21 22:39 
GeneralRe: Async design Pin
Mycroft Holmes11-Nov-21 13:29
professionalMycroft Holmes11-Nov-21 13:29 
AnswerRe: Async design Pin
Greg Utas11-Nov-21 3:13
mveGreg Utas11-Nov-21 3:13 
QuestionCommon Code Pin
Kevin Marois3-Nov-21 14:00
professionalKevin Marois3-Nov-21 14:00 
QuestionDAL Design Question Pin
Kevin Marois9-Aug-21 8:16
professionalKevin Marois9-Aug-21 8:16 
AnswerRe: DAL Design Question Pin
Mycroft Holmes9-Aug-21 13:44
professionalMycroft Holmes9-Aug-21 13:44 
AnswerRe: DAL Design Question Pin
Eric P Schneider11-Oct-21 20:41
Eric P Schneider11-Oct-21 20:41 
DL.InsertUpdate(Job job, Transaction trans)
could check if the id = 0 and decide to insert or update if >0.

DL.Insert(Job job, Transaction trans)

DL.Update(Job job, Transaction trans) 


I would also create a property on Job of
Job.ReqDelete
which
DL.Delete(Job job, Transaction trans)
would act on.

Then a public method of
DL.SaveJobChanges(IList<Job> jobs, Transaction trans)
.

Another note, all the changes should be wrapped in a transaction, and handle errors so it's all or nothing, other wise the user could have some updates or deletes or insets fail. It's easier for a user and as a process to handle all or nothing.
Schneider

QuestionWhat is an archetect? Pin
Tad McClellan6-Aug-21 18:55
professionalTad McClellan6-Aug-21 18:55 
AnswerRe: What is an archetect? Pin
Gerry Schmitz7-Aug-21 6:22
mveGerry Schmitz7-Aug-21 6:22 
AnswerRe: What is an archetect? Pin
Mycroft Holmes7-Aug-21 13:36
professionalMycroft Holmes7-Aug-21 13:36 
Questioncross compiling a huge codebase from Power++ to c# Pin
sx20088-Jul-21 12:17
sx20088-Jul-21 12:17 
AnswerRe: cross compiling a huge codebase from Power++ to c# Pin
Dave Kreskowiak8-Jul-21 12:43
mveDave Kreskowiak8-Jul-21 12:43 
AnswerRe: cross compiling a huge codebase from Power++ to c# Pin
Mycroft Holmes8-Jul-21 13:55
professionalMycroft Holmes8-Jul-21 13:55 
AnswerRe: cross compiling a huge codebase from Power++ to c# Pin
Gerry Schmitz9-Jul-21 6:47
mveGerry Schmitz9-Jul-21 6:47 
GeneralRe: cross compiling a huge codebase from Power++ to c# Pin
Mycroft Holmes9-Jul-21 13:36
professionalMycroft Holmes9-Jul-21 13:36 
GeneralRe: cross compiling a huge codebase from Power++ to c# Pin
Gerry Schmitz12-Jul-21 9:27
mveGerry Schmitz12-Jul-21 9:27 
AnswerRe: cross compiling a huge codebase from Power++ to c# Pin
jschell17-Jul-21 11:55
jschell17-Jul-21 11:55 
QuestionEasiest Way To Implement Predictive Search On An Intranet Site Pin
Maria Delpiano17-Jun-21 6:25
Maria Delpiano17-Jun-21 6:25 
AnswerRe: Easiest Way To Implement Predictive Search On An Intranet Site Pin
jschell7-Jul-21 7:43
jschell7-Jul-21 7:43 
GeneralRe: Easiest Way To Implement Predictive Search On An Intranet Site Pin
Mycroft Holmes7-Jul-21 14:28
professionalMycroft Holmes7-Jul-21 14:28 
GeneralRe: Easiest Way To Implement Predictive Search On An Intranet Site Pin
User 1407655213-Jul-21 10:23
User 1407655213-Jul-21 10:23 
QuestionSoftware architecture pattern Pin
Tabah Baridule10-Jun-21 10:32
Tabah Baridule10-Jun-21 10:32 
AnswerRe: Software architecture pattern Pin
PIEBALDconsult10-Jun-21 10:32
professionalPIEBALDconsult10-Jun-21 10:32 
GeneralRe: Software architecture pattern Pin
Tabah Baridule11-Jun-21 19:59
Tabah Baridule11-Jun-21 19:59 

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.