Newbie question. When you create a Class in Visual Studio I right-click the 'AppCode' folder, select 'Class' and name the class "Customers". It throw the Customers.vb file in my 'AppCode' folder. Great.
Here's my question? When you create a Class file, such as "Customer.vb" does the NameSpace have to MATCH or can it be name differently?
I've been doing some research on naming convensions and what I've found online says that your namespace should be something like this:
CompanyName.Customers.DataLayer
If that's the case, should my Class file be renamed from "Customers.vb" to "CompanyName.Customers.DataLayer.vb"
Hope this makes sense. I just confused on the correct way to do it and if they need to match. Please help!
Open in new window