Penguen
Penguen

Reputation: 17298

Dynamic Data App_code directory - where is it?

i try to learn learn Dynamic Data Entties . i see some sample about it. they try to teach some codes in App_code. i really want to learn where is my Ap_code?

Upvotes: 0

Views: 826

Answers (3)

Rob
Rob

Reputation: 3066

As mentioned above, a web app project does not create an App_Code folder by default. You can create one using the solution explorer though if you want - right click on web project, new folder..., name it App_Code.

Upvotes: 0

Aaron Hoffman
Aaron Hoffman

Reputation: 6962

Web Applications do not use the App_Code folder, only Web Sites. If you want to use the App_Code folder create a Web Site instead of a new Web Application.

If you want to use a Web Application you can place the .dbml file anywhere, you'll just have to fully qualify (with namespaces) the DataContext wherever you want to use it (ex: in the Global.asax file).

Upvotes: 2

João Guilherme
João Guilherme

Reputation: 1379

It seems it is not possible to create the app_code folder. Take a look at the bottom of this page in the community content part. There are a lot of people with the same problem.

SOLUTION: add the .dbml to file root of the site

Upvotes: 0

Related Questions