simple question really, i was wanting to know what naming conventions anybody puts on there DTO / POCOS ....
I didn't really want to prefix like hungarian notation.. i got away from that!.
But my dtos naming are clashing with my actual returned object names and although they are in a different namespace its still a bit confusing..
I was wondering what naming conventions anybody applies to it
for example my customer object is called Customer
and i do a mapping to dto ... which is Customer.. iwas thinking DtoCustomer ..
Not sure
Anyone ?
I prefer to use namespaces for this. Using namespace aliases for this makes it even more clear.
This would make code that looks like:
Customer myCustomer = new Customer();
Dto.Customer dtoCustomer = ....;
If I'm working entirely in the DTO layer, I still can work with "Customer" at this point.