Loading Selective BO in a Website


Author
Message
Vikram Saxena
Vikram Saxena
StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)
Group: Forum Members
Posts: 41, Visits: 99
Lets say i have 10 Business Objects which i declare in ApplicationBasePage and then i inherit all my pages from ApplicationBasePage, so on load of all pages are ALL the 10 Business Objects loaded & populated or only the selective ones are loaded ?

Basically, on a Item Details page i would not like to load the CustomerBO to have less amount of processing.

Request you to please elobarate a bit on this concept and clarify my concern.

Reply
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
Your approach for your base class should work just fine.  One option that we use from time to time is a shared class in cases that we need to re-use code from several locations and subclassing is not really an option.  In your case you can subclass, but just to show you another option, you can create a shared class that never requires an instance to be created and you can call directly anytime:

Public Notinheritable Class MySharedClass

'-- Prevent the class from being instantiated
Private Sub New()
End Sub

'-- A shared sub
Public Shared Sub MySharedMethod()
    '-- Do whatever you need to do
End SUb

'-- A shared function
Public Shared Function MySharedFunction() As Boolean
    '-- Do some stuff
    Return True
End Sub

End Class

As for the DLLs required, you will need the following:

MicroFour StrataFrame Base.DLL
MicroFour StrataFrame Business.DLL
MicroFour StrataFrame UI.DLL

and if you are using security you will need:

MicroFour StrataFrame Security.DLL

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