Business Object Designer


Author
Message
John Frankewicz
John Frankewicz
StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)StrataFrame Beginner (40 reputation)
Group: Forum Members
Posts: 36, Visits: 65

The bussiness-designers csharp file gets corrupted by not putting a space between "namespace" and the <namespace name>

namespaceWindowsApplication1{

public partial class BusinessObject1 : MicroFour.StrataFrame.Business.BusinessLayer

{

#region Component Implementation

/// <summary>

/// Required designer variable.

/// </summary>

private System.ComponentModel.IContainer components = null;

/// <summary>

/// Clean up any resources being used.

/// </summary>

/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>


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
That is actually due to .NET and the CSharp.  TO prevent this from happening, add a namespace to your business object project.  Right now it is empty so .NET and CSharp assumes the root and this is what it does.  To avoid this in the future, do the following:

1.) Open the Busines Object Mapper within the appropriate solution
2.) Click on the first project that needs to be updated
3.) Click the "Modify Project Properties" link on the right panel
4.) Set the "Default Namespace" to the root namespace of the CSharp project (or whatever namespace you want the BO to have)
5.) When prompted, select "Change All" to update all existing business objects.

The next time you rebuild this will not happen and all future business objects will have the default namespace you just specified.

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