Click here to Skip to main content
15,671,149 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Async design Pin
Gerry Schmitz10-Nov-21 20:26
mveGerry Schmitz10-Nov-21 20:26 
AnswerRe: Async design Pin
Richard Deeming10-Nov-21 21:39
mveRichard Deeming10-Nov-21 21:39 
GeneralRe: Async design Pin
Mycroft Holmes11-Nov-21 12:29
professionalMycroft Holmes11-Nov-21 12:29 
AnswerRe: Async design Pin
Greg Utas11-Nov-21 2:13
mveGreg Utas11-Nov-21 2:13 
QuestionCommon Code Pin
Kevin Marois3-Nov-21 13:00
professionalKevin Marois3-Nov-21 13:00 
QuestionDAL Design Question Pin
Kevin Marois9-Aug-21 7:16
professionalKevin Marois9-Aug-21 7:16 
AnswerRe: DAL Design Question Pin
Mycroft Holmes9-Aug-21 12:44
professionalMycroft Holmes9-Aug-21 12:44 
AnswerRe: DAL Design Question Pin
Eric P Schneider11-Oct-21 19:41
Eric P Schneider11-Oct-21 19: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 17:55
professionalTad McClellan6-Aug-21 17:55 
AnswerRe: What is an archetect? Pin
Gerry Schmitz7-Aug-21 5:22
mveGerry Schmitz7-Aug-21 5:22 
AnswerRe: What is an archetect? Pin
Mycroft Holmes7-Aug-21 12:36
professionalMycroft Holmes7-Aug-21 12:36 
Questioncross compiling a huge codebase from Power++ to c# Pin
sx20088-Jul-21 11:17
sx20088-Jul-21 11:17 
AnswerRe: cross compiling a huge codebase from Power++ to c# Pin
Dave Kreskowiak8-Jul-21 11:43
mveDave Kreskowiak8-Jul-21 11:43 
AnswerRe: cross compiling a huge codebase from Power++ to c# Pin
Mycroft Holmes8-Jul-21 12:55
professionalMycroft Holmes8-Jul-21 12:55 
AnswerRe: cross compiling a huge codebase from Power++ to c# Pin
Gerry Schmitz9-Jul-21 5:47
mveGerry Schmitz9-Jul-21 5:47 
GeneralRe: cross compiling a huge codebase from Power++ to c# Pin
Mycroft Holmes9-Jul-21 12:36
professionalMycroft Holmes9-Jul-21 12:36 
GeneralRe: cross compiling a huge codebase from Power++ to c# Pin
Gerry Schmitz12-Jul-21 8:27
mveGerry Schmitz12-Jul-21 8:27 
AnswerRe: cross compiling a huge codebase from Power++ to c# Pin
jschell17-Jul-21 10:55
jschell17-Jul-21 10:55 
QuestionEasiest Way To Implement Predictive Search On An Intranet Site Pin
Maria Delpiano17-Jun-21 5:25
Maria Delpiano17-Jun-21 5:25 
AnswerRe: Easiest Way To Implement Predictive Search On An Intranet Site Pin
jschell7-Jul-21 6:43
jschell7-Jul-21 6:43 
GeneralRe: Easiest Way To Implement Predictive Search On An Intranet Site Pin
Mycroft Holmes7-Jul-21 13:28
professionalMycroft Holmes7-Jul-21 13:28 
GeneralRe: Easiest Way To Implement Predictive Search On An Intranet Site Pin
User 1407655213-Jul-21 9:23
User 1407655213-Jul-21 9:23 
QuestionSoftware architecture pattern Pin
Tabah Baridule10-Jun-21 9:32
Tabah Baridule10-Jun-21 9:32 
AnswerRe: Software architecture pattern Pin
PIEBALDconsult10-Jun-21 9:32
professionalPIEBALDconsult10-Jun-21 9:32 
GeneralRe: Software architecture pattern Pin
Tabah Baridule11-Jun-21 18:59
Tabah Baridule11-Jun-21 18: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.