Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

DTO Explanation

$
0
0

My question: I have a Blazor project on .NET 9. My database consists of:

  • Parameter table
  • Regular table
  • Parent-to-child table

What is the best practice for API to use?

  1. Should I create models for my table, and create DTO for all tables included the parameter table? Or use DTO for regular and parent-to-child table only?

  2. Use Automapper is the correct decision.

Please advice and recommend the best and safe solution. Thanks in advance


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>