I created a multi-layer project, structured like this
- UI
- Application
- Domain
- Infrastructure
I have an Entity in the Domain-Layer called 'Domain'. It represents an internet domain, as the project is a kind of a "Domain-Management-Software" I struggled finding a better name for that entity...
Now what I've got is a "type name expected but namespace found"-Error in Visual Studio. The best way I've found so far, to get rid of the error, is to prefix the Entity with its namespace. So creating a new instance looks like this:
var domain = new Domain.Entities.Domain();
Is this the way to go, or do you know a more elegant solution?