Can't specify a location for new class code file on class diagram>new class dialog?

A

Andy B

When I add a new class diagram to my asp.net 2.0 project and then add a new
class to it I cant tell the class diagram where to put the new class code
file. How do you do this?
 
M

Marc Gravell

By location - do you mean in the solution, or on the diagram?

If the solution, I'd create the class, and then (maybe) drag that class from
the solution explorer onto the diagram.

If the diagram... does it not create it where you right-click?

Marc
 
A

Andy B

I mean I have a class I want to put in app_code/bll I right click the bll
folder, go to add new item and put a new class diagram in the bll folder. I
open the designer, and drag a class to the designer. It asks for the class
name, access level and where do I want to put the code. I tell it I want a
new file and call it the name of the class.cs. When I save the designer and
look at solution explorer, I have this: a BLL.cd file in app_code/bll and a
class file called Product.cs in app_code. I need the class in app_code/bll.
How do I do this?
 
I

Ignacio Machin \( .NET/ C# MVP \)

Andy B said:
When I add a new class diagram to my asp.net 2.0 project and then add a
new class to it I cant tell the class diagram where to put the new class
code file. How do you do this?

Normally I do create the class in the project and only later I drag it to
the diagram.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top