Using SubSonic in the VB.Net Web Application

This is the first time I'm using Subonic in a VB.net application (I have used it successfully in a WebSite project many times). I followed the second part of the Getting Started video to actually generate the DAL source files, unlike the assembly provider method, and all that APPEARS seems to be expected. However, I will not do anything to get the namespace that appears. I feel this is because I am running my web application in VB.Net and Subsonic in C #.

Here is the process that I performed:

1) I created an empty web application project in Visual Studio 2) I configured web.config for the necessary parts, connection strings, etc. 3) I launched the subcommand, and it generated all the classes that I need into a folder called DAL. 4) I built a web application project 5) I opened the code behind, typed “Import” and I don’t see the created namespace.

I even opened the actual Subsonic Source files and saw that there is a namespace operator for the generated namespace that I configured. I tried to briefly move the subsonic files into a separate class library project, compile the DLL and use it in my project, but it still does not work.

Does anyone have any thoughts on what I might be doing wrong?

Thanks,

Mike

+3
2

,

, , . , DAL SubCommander, v/vang vb. :

generate/out DAL/lang vb

DAL VB.net, , .

Mike

+6

. :

generate /out Classes\DAL /lang vb
+1

Source: https://habr.com/ru/post/1708608/


All Articles