Problem Creating a Business Object


Author
Message
Andria Jensen
Andria Jensen
Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)
Group: Forum Members
Posts: 336, Visits: 497
I'm trying to go through the tutorial for Creating a WinForms App since I just downloaded the trial and want to see how things work.  I'm getting to the point where I add a Business Object, then open up the Business Object Mapper to configure it.  I add a new project, point it to my database with a connection string like this: Server=myserver;Database=mydb;User ID=sa;Password=mypwd;Integrated Security=False;  I also tried browsing to the database and having it generate the connection string.  In both cases, it seems to create the project fine, but when I get back to the Mapper, there is still a red x on the project name, and I still cannot configure the business object.  Any idea what could be going wrong here?  I'm at a loss as I have followed the tutorial exactly but cannot get past step 5 of "Configuring the Business Object Mapper Project".  Please help!
Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Andria,

The connection string in the BO Mapper project is for the business objects and has nothing to do with associating the BO Mapper project to the Visual Studio project.  I thought I would just give you step by step and see if you have the same results.

1. Open your tutorial project in Visual Studio

2. Click "StrataFrame" from the menu and the click "Business Object Mapper"

3. You should then see the BO Mapper and the Visual Studio project will have a red X in the treeview.  Select the project from the treeview and the click "Configure Project"

4. This will bring up the project selection dialog.  To create a new BO Mapper project. click "New."

5. This will bring up the project properties dialog window.  In the "Project Name" textbox, type "Tutorial Project".  Leave all other fields on the form alone just to make sure the BO Mapper project gets associated with the VS project. You can come back and correct the settings once we verify that it stays connected.  You do not have to normally do this, I just want to take everything out of the formula so you can see exactly how the link between the VS project and the BO Mapper project gets established.

6.  Click the "OK" button and it will take you back to the BO Mapper window and the red X should be gone.

7. To prove that the configuration will "stick" close the BO Mapper and then come back in.  The red X should no longer appear next to the VS project in the treeview.  Once you prove this, go back in and set the project settings to your liking by clicking the "Modify Project Properties" link.

Hope this helps. Smile

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
When the you configure the project and link it to a BOMapper project, it links to the full path to the .vbproj or .csproj file.  So, if your project file is on a network share or contains special characters, this might cause a problem.  So you might check and make sure that the project path is not "out of the ordinary."
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search