Reference variables contain namespace

前端 未结 1 770
滥情空心
滥情空心 2021-01-26 18:05

I am trying to follow the advice of the answerer of this post: What\'s the naming convention for classes in the DataAccess Project? (jdk).

Please take a look at the code

相关标签:
1条回答
  • 2021-01-26 18:18

    You should be able to add Imports DataLogicLayerShared at the top of your source file. This will keep you from having to fully qualify each class with the namespace.

    You can learn more about VB .NET references and namespaces here

    Update: If you have multiple classes or interfaces with the same name, in different namespaces, you will have to qualify which class you are using by adding the namespace before it as in your example above.

    In your case, you probably don't need to include business layer and data layer classes in the same source file. Your code should call the services (business logic) layer, which in turn calls the data layer.

    0 讨论(0)
提交回复
热议问题