Probably some of you already met this problem. Sometimes you may want to execute a LINQ query which is returning custom data. That data is being encapsulated into a transfer object, but I'm a little confuse about the naming of these objects. We can't name it DTO cause those are used to transfer data from the service layer. In this case is there a particular naming convention?
Is there a naming convention for custom repository response objects?
274 Views Asked by Ion cojocaru At
1
There are 1 best solutions below
Related Questions in .NET
- file download method in visual studio 2017
- Repository manager receives the wrong connection string in .net core
- MongoDb not connecting C#
- The current .NET SDK does not support targeting .NET Core 6.0. Brand new WPF Project VS Community 2022 17.9.5
- Why Scanning GSI on DynamoDb doesnt work as fast as expected when using CONTAINS?
- Are "blittable types" really unmanaged types for StructLayout Sequential
- Failed to fetch dynamically imported module on Blazor JS Interop
- Problem to upload several images per one request
- Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
- Stripe connect payout - throws exceptions
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Convert C# DateTime.Ticks to Bigquery DateTime Format
- Socket.io nodejs server .NET connection
- Producer Batching Service Bus Vs Kafka
Related Questions in NAMING-CONVENTIONS
- What is the naming convention in Python for asynchronous functions?
- Why do most Azure naming conventions include the resource type in the name?
- useReducer naming conventions
- Python script won't skip past files that match naming convention set in file renaming program
- Issue changing Pylint naming convention in VS Code
- camelCase naming convention not working while returning response
- What does $$[T] mean in method name
- Power Automate, Attempting to add an action that will paste in and rename an export file according to the previous business day in the MM.DD format
- What is the term for a colon before a suite in Python syntax?
- What is the convention for naming C# files that contain extension methods?
- Prisma and Types: Confused about Naming Conventions
- Nested system naming convention in Common Lisp using ASDF?
- How do I reference a lookup table that might not contain the looked up record?
- How distinguish stage of infra vs stage of software in naming convention (IaC)
- How to configure editorconfig file to allow units of measurement after variable names?
Related Questions in N-TIER-ARCHITECTURE
- ModelState with entities relationship
- How did we use Localization in Abp.Theme project , while localization Sources in Domain.shared?
- Dependency Injection on an N-Tier solution - Remove Boilerplate
- Using SignalR and SqlDependency with Asp.Net Core 8.0 N-Tier Architecture
- How to solve the authentication issue?
- ASP.NET Core MVC (N Tiered Architecture) Insert Problem [SOLVED]
- Service Aggregator In N Tier Architecture Pattern
- Relation between tiers in architecture and distributed system?
- What problem of Layer Architecture really solve Onion Architecture?
- .NET Core multi-tier app: Where to store config json file and access it from different projects?
- Is there a naming convention for custom repository response objects?
- SaveChanges problem in N-Tier Architecture
- N-Tier Dependencies between Project in NET Core
- Transform MVC to layered Architecture in Spring Boot
- How to join two table with repository and service pattern
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is not an industry-wide standard where "industry" means the software development community.
Anecdotally, I've seen some common naming conventions:
Dtoto the name of the entity -- what you suggested. There is no reason you can't do this for data coming back from the database as well (after all the .NET object holding DB data is still a data transfer object). You could, of course, run into naming conflicts with the service layer if not cleanly separated.Data.Entityfor entities in the database, orValueif the data represents a value object.Db.For your case you most likely need to avoid naming conflicts, which means appending
Dataor prependingDbwould be good choices.