M
Mythran
I have a namespace standard that I have to adhere to set by our development
staff:
[CompanyName.SolutionType.SolutionName.ProjectName]
So, an example:
MyCompany.Libraries.MyLibrary (When projectname == solutionname, we leave
the projectname off of the namespace).
Application:
MyCompany.Applications.MyApp.WebUI -> Web UI
MyCompany.Applications.MyApp.DAL -> Data Access Layer
MyCompany.Applications.MyApp.Schema -> Schema
et cetera ...
Now, for folders, we have standards similar to:
Solution
Project
classes
modules
data
Now, in the schema project, we have datasets under the data folder. In
VB.Net, this was good, we would dimension a variable in our other projects
(UI, WebUI, DAL, BLL, et cetera) similar to:
Dim ds As Schema.MyDataSet = New Schema.MyDataSet()
But in C#, because of the way it places the datasets under the namespace of
the parent folder, the way to create the same variable would be:
Dim ds As Schema.data.MyDataSet = New Schema.data.MyDataSet()
The above goes against the standards...not that it's all that bad, but we
don't want it like this. Is there a way, without manually editing the
autogenerated dataset code files, to keep the project namespace without
adding the foldername to the namespace inside classes added to the project,
or autogenerated code (such as the dataset)?
Thanks in advance...
Mythran
staff:
[CompanyName.SolutionType.SolutionName.ProjectName]
So, an example:
MyCompany.Libraries.MyLibrary (When projectname == solutionname, we leave
the projectname off of the namespace).
Application:
MyCompany.Applications.MyApp.WebUI -> Web UI
MyCompany.Applications.MyApp.DAL -> Data Access Layer
MyCompany.Applications.MyApp.Schema -> Schema
et cetera ...
Now, for folders, we have standards similar to:
Solution
Project
classes
modules
data
Now, in the schema project, we have datasets under the data folder. In
VB.Net, this was good, we would dimension a variable in our other projects
(UI, WebUI, DAL, BLL, et cetera) similar to:
Dim ds As Schema.MyDataSet = New Schema.MyDataSet()
But in C#, because of the way it places the datasets under the namespace of
the parent folder, the way to create the same variable would be:
Dim ds As Schema.data.MyDataSet = New Schema.data.MyDataSet()
The above goes against the standards...not that it's all that bad, but we
don't want it like this. Is there a way, without manually editing the
autogenerated dataset code files, to keep the project namespace without
adding the foldername to the namespace inside classes added to the project,
or autogenerated code (such as the dataset)?
Thanks in advance...
Mythran