.netnaming-conventionsn-tier-architecture

Is there a naming convention for custom repository response objects?


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?


Solution

  • There is not an industry-wide standard where "industry" means the software development community.

    Anecdotally, I've seen some common naming conventions:

    For your case you most likely need to avoid naming conflicts, which means appending Data or prepending Db would be good choices.