Orphaned Business Object


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
Started a new solution, after deleting the previous solution, and added a business object. When I went to the object mapper I say two business objects, one from my previous solution and the new one.

I assume it's getting this information from the database, but could someone explain what is going on?

Very confusing.

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
I don't think this is coming from the database. More than likely you have a busienss object within your solution with two different namespaces. For example, the BO.cs has a different namespace than the BO.Designer.cs file. This will create a "Phantom" business object since technically they are in two different namesapces. This generally only occurs in CSharp projects since a namespace is required and if one is not specified in the Business Object Mapper, this can be the result.



Too verify, manually open the BO.cs and the BO.Designer.cs files and see if they have different namespaces. If so, change one of the them and only one should appear in the BO Mapper.
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
Yes, the functionality you're seeing is coming from the database... the Business Object Mapper uses the StrataFrame database to persist settings for your business objects. The Business Object Mapper has a project record that it ties to your computer through the full path to your project file. Since the project you re-created had the same path as the project you deleted, the Business Object Mapper thought that they were the same project and thought that it was already configured.



So, when you delete and re-create the project, if you want to delete all of the settings associated with the old project in the Business Object Mapper, you'll have to go into the project properties of the Business Object Mapper and manually delete the project configuration.



You'll also notice that when you move your project to a different folder (as is the case when you don't "save" the project when you create it and it creates the project in a temporary folder until you save it permanently) you'll have to "re-configure" your project through the Business Object Mapper. NONE OF YOUR SETTINGS WILL BE LOST as the Business Object Mapper's project record is not deleted, but you'll have to re-tie it to the new path for the project file.



Hope this helps Smile



The "ghost" business objects Trent is talking about can also appear, just like he said, if the namespaces don't match on your business objects' files (half of the class is in one namespace, and half of the class is in the other namespace, and the Business Object Mapper thinks you've created two separate business objects with the same name, so it lists both of them).
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