Click here to Skip to main content
15,498,348 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionAdvice for web application technologies / architecture Pin
cpper28-Dec-20 9:46
Membercpper28-Dec-20 9:46 
AnswerRe: Advice for web application technologies / architecture Pin
DerekT-P11-Dec-20 0:49
professionalDerekT-P11-Dec-20 0:49 
QuestionDesign Pattern advice Pin
Freerk_C16-Nov-20 4:20
MemberFreerk_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
MemberFreerk_C16-Nov-20 23:09 
GeneralRe: Design Pattern advice Pin
Rob Grainger6-Jul-21 12:40
MemberRob 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
Membercjb11010-Nov-20 22:27 
I'd like a bit of help with terminology/practices around models and DTO's.

If it makes any difference to the answer, this is a blazor client/webapi server in C#, and there will be a database ORM (likely EF) at some point.

I've got some simple plain object classes that I've been calling Models, and each of these contain the properties for one 'thing' in my application.

Now one part of my UI wants to display data from multiple of these model classes. Now I'm pretty sure you don't want to get all of data from each model and combine on the UI. I'm also pretty sure I can't transfer an anonymous type over a webapi call? Or at least I couldn't easily work with it if I did.

So I think I want to create a second class that has the properties from both the parent classes I want to use, the server part does the combining and transfers that class.

So is this combined class more commonly referred to as a DTO? and that for ease of understanding I should separate that from my main model classes?
Also if I do just want all the data from a model class, I dont need to create a seperate DTO just for that, and its ok to just reuse the model class?

thanks
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 
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
Membercjb11011-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
MemberTimWallace23-Feb-21 23:54 
RantWhen will developers stop using dynamic/asynchronous loading of pages/links/button Pin
Member 1124694812-Oct-20 6:15
MemberMember 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 

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.