StrataFrame Forum

V1.5 upgrade problem

http://forum.strataframe.net/Topic3196.aspx

By franka - 9/29/2006

I recently upgraded to V1.5 and now I'm having a problem rebuilding a solution.  I deleted the existing references and readded them.  Now I'm trying to rebuild the business objects using the Business Object Mapper.  It appears that 1 of my 3 business objects is no longer recognized as a Strataframe Business object.  Is there any way to correct/resolve the problem with recreating it?

See attached screenshot.

By Trent L. Taylor - 9/29/2006

In version 1.5 the business objects BusinessLayer definition was moved from the partial to the main class.  This allows you to create a custom BO layer base and inherit from your class rather than the default StrataFrame BusinessLayer without overwriting the changes when the partial is rebuilt.  Looking at your class, the only problem you are having is that your UsersBO is missing the BusinessLayer inherited statement.

It should look like this:

<Serializable()> _
Public Class UsersBO
       
Inherits MicroFour.StrataFrame.Business.BusinessLayer

Once this change has been made, you will be good to go. Smile     

By franka - 10/2/2006

That fixed that object but I'm still having a problem with my login process.  I use the  ShowLoginAndInitMainForm method which passes an ShowLoginAndInitFormEventArgs object as the event arg.  In the code, I set the LoginSuccessful property of the ShowLoginAndInitFormEventArgs object.  But it appears LoginSuccessful is no longer a property of the object or at least that is what the message says and it doesn't show up in intellisense.  Looking in the Help file it appears the method is still valid.  What am I missing?  See attached screenshot.  Thanks!! 
By StrataFrame Team - 10/2/2006

The LoginSuccessful property has changed to ShowMainForm.  So, if you want to show a login and then either show the main form or exit, then you will need to use this:

e.ShowMainForm = True

By franka - 10/2/2006

Thanks Ben that fixed the problem.

FYI - The v1.5 help file still has the property as LoginSuccessful and there is no reference to ShowMainForm.