C# Project folder naming conventions

后端 未结 5 1106
轻奢々
轻奢々 2021-02-05 20:19

I have a project called Data which is a data layer. In this project, all files are just lying in the top folder. I have enumerations, POCOs, repositories, partial classes and so

5条回答
  •  滥情空心
    2021-02-05 20:32

    I tend to use project folders as a way of separating out sub namespaces. So in your case, perhaps a folder called Repositories, which has class in the Data.Repositories namespace. Note, for partial classes, each file needs to be in the same namespace.

提交回复
热议问题