Click here to Skip to main content
15,503,143 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionDesign Pattern advice Pin
Freerk_C16-Nov-20 4:20
Freerk_C16-Nov-20 4:20 
AnswerRe: Design Pattern advice Pin
Pete O'Hanlon16-Nov-20 5:46
mvaPete O'Hanlon16-Nov-20 5:46 
GeneralRe: Design Pattern advice Pin
Freerk_C16-Nov-20 23:09
Freerk_C16-Nov-20 23:09 
GeneralRe: Design Pattern advice Pin
Rob Grainger6-Jul-21 12:40
Rob Grainger6-Jul-21 12:40 
AnswerRe: Design Pattern advice Pin
Gerry Schmitz16-Nov-20 8:24
mveGerry Schmitz16-Nov-20 8:24 
QuestionData Class for data combined from Other Classes Pin
cjb11010-Nov-20 22:27
cjb11010-Nov-20 22:27 
AnswerRe: Data Class for data combined from Other Classes Pin
Richard Deeming10-Nov-20 22:50
mveRichard Deeming10-Nov-20 22:50 
AnswerRe: Data Class for data combined from Other Classes Pin
Gerry Schmitz10-Nov-20 22:53
mveGerry Schmitz10-Nov-20 22:53 
A DTO (data transfer object) is like a pack animal; it's used to move data around as a convenience; they're not part of the "official" model. A DTO comes to mind (for example) when you have to pass "a lot of parameters"; a DTO class is tidier. It's said they shouldn't have methods, only data; but I see no reason not to have special getters, setters and the like if its convenient

Your EF classes would be considered part of your official model; but a single class is not typically referred to as a model; "entity" maybe. Model data (entities) are typically stored (eg. in a db); DTO's aren't.

And, yes, when you retrieve an entity from EF, you can use it "as is"; bearing in mind that these entities can be in different "states" (attached, detached, modified), depending on you requirements at the time.

And your UI can have multiple / different entities (from different tables); eg. the classic "sales invoice" with header (entity1) and details (entity2); the parent-child relationship.

And data typically gets passed in a web service as XML which you put together as you please (according to spec). see: Data Contracts.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food


modified 11-Nov-20 4:05am.

AnswerRe: Data Class for data combined from Other Classes Pin
Mycroft Holmes11-Nov-20 12:07
professionalMycroft Holmes11-Nov-20 12:07 
GeneralRe: Data Class for data combined from Other Classes Pin
cjb11011-Nov-20 20:20
cjb11011-Nov-20 20:20 
Questionn-Tier Design Question Pin
Kevin Marois2-Nov-20 8:10
professionalKevin Marois2-Nov-20 8:10 
AnswerRe: n-Tier Design Question Pin
Richard Deeming2-Nov-20 23:16
mveRichard Deeming2-Nov-20 23:16 
GeneralRe: n-Tier Design Question Pin
Kevin Marois3-Nov-20 7:16
professionalKevin Marois3-Nov-20 7:16 
AnswerRe: n-Tier Design Question Pin
TimWallace23-Feb-21 23:54
TimWallace23-Feb-21 23:54 
RantWhen will developers stop using dynamic/asynchronous loading of pages/links/button Pin
Member 1124694812-Oct-20 6:15
Member 1124694812-Oct-20 6:15 
AnswerRe: When will developers stop using dynamic/asynchronous loading of pages/links/button Pin
Richard MacCutchan12-Oct-20 6:23
mveRichard MacCutchan12-Oct-20 6:23 
AnswerRe: When will developers stop using dynamic/asynchronous loading of pages/links/button Pin
Dave Kreskowiak12-Oct-20 9:27
mveDave Kreskowiak12-Oct-20 9:27 
GeneralRe: When will developers stop using dynamic/asynchronous loading of pages/links/button Pin
Greg Utas12-Oct-20 11:00
mveGreg Utas12-Oct-20 11:00 
GeneralRe: When will developers stop using dynamic/asynchronous loading of pages/links/button Pin
Gerry Schmitz12-Oct-20 11:57
mveGerry Schmitz12-Oct-20 11:57 
GeneralRe: When will developers stop using dynamic/asynchronous loading of pages/links/button Pin
Richard MacCutchan12-Oct-20 21:56
mveRichard MacCutchan12-Oct-20 21:56 
GeneralRe: When will developers stop using dynamic/asynchronous loading of pages/links/button Pin
Gerry Schmitz12-Oct-20 23:20
mveGerry Schmitz12-Oct-20 23:20 
GeneralRe: When will developers stop using dynamic/asynchronous loading of pages/links/button Pin
Richard MacCutchan12-Oct-20 23:27
mveRichard MacCutchan12-Oct-20 23:27 
GeneralRe: When will developers stop using dynamic/asynchronous loading of pages/links/button Pin
Gerry Schmitz12-Oct-20 23:57
mveGerry Schmitz12-Oct-20 23:57 
GeneralRe: When will developers stop using dynamic/asynchronous loading of pages/links/button Pin
Richard MacCutchan13-Oct-20 3:45
mveRichard MacCutchan13-Oct-20 3:45 
GeneralRe: When will developers stop using dynamic/asynchronous loading of pages/links/button Pin
ZurdoDev13-Oct-20 4:16
professionalZurdoDev13-Oct-20 4:16 

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.