Aliasing fields in the BO...


Author
Message
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
I was wondering. Does the StrataFrame support aliasing the field names in the business object? For instance if we build BOs then write code based on those BOs and a field name changes in the database, and we re-run the BO mapper to update the field name do we then have to go through ALL our code to replace the field name?
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
This is one beautiful feature of the strong-typed business objects.  When you change a field name, you will receive an error in all of the locations that reference the old field name.  You can do several things at this point, just click on the error and it will take you to the place that needs to be modified with the new field name, or you can use some of the refactoring tools to replace all of the referenced locations for you.

As for aliasing, we do not have this type of support, but honestly we change names all of the time and it is literally a few minute problem just going through the error list and correcting the referenced names.

Hope this helps.

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