StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Subcalssing SF Business Objects
Subcalssing SF Business Objects
Post Reply
Like
0
Subcalssing SF Business Objects
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Ger Cannoll
Ger Cannoll
posted 14 Years Ago
ANSWER
HOT
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 430,
Visits: 507
I want to start subclassing SF Buisness Objects (so I can imbed ny own Code in some of the methods) and am not sure how to do this. I have successfully subclassed a few controls (TextBoxes, Lables) etc and they are working fine, so I am using a similar approcah for Buisness Objects.
I tried :
public class KernelBO : MicroFour.StrataFrame.Business.BusinessLayer
{
}
My project compiles ok. I then created a new Business Object in the normal way , and went in manually and changed the generated code
from:
public partial class SquBO : MicroFour.StrataFrame.Business.BusinessLayer
to:
public partial class SquBO : KernelBaseSF.KernelBO
but got an error in compiling the Business Objects Project (KernelBaseSF.KernelBO does not contain a constructor that takes 2 arguments
What am I doing wrong here ?
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Subcalssing SF Business Objects
Ger Cannoll
-
14 Years Ago
Hi Gerard, There used to be an article available from this website...
Sam Tenney
-
14 Years Ago
I have a copy if you want me to email it too you? Terry Bottorff
Terry Bottorff
-
14 Years Ago
Hi Terry. Yes, Please email it. Not sure if its the same one as an...
Ger Cannoll
-
14 Years Ago
That is exactly the one it is. So no need to send it. Sorry.
Terry Bottorff
-
14 Years Ago
Hi Terry I have had another look at the artcile and it seems to...
Ger Cannoll
-
14 Years Ago
The error you are getting is likely because your base class and...
Greg McGuffey
-
14 Years Ago
Hi Greg. If subclassing the SF Business Objects is not the way to...
Ger Cannoll
-
14 Years Ago
You're headed in the right direction. You DO want to sub class...
Greg McGuffey
-
14 Years Ago
Ok Greg, still not clear on what I have to do to SubClass the SF BO....
Ger Cannoll
-
14 Years Ago
To sub-class a BO, you are actually sub-classing the BusinessLayer as...
Greg McGuffey
-
14 Years Ago
I have put in constructor code when subclassing the SF buisnes object...
Ger Cannoll
-
14 Years Ago
You do not need the initialize component. That is specific to the...
Greg McGuffey
-
14 Years Ago
Hi Greg. ve stripped out all the InitailizeComponent etc stuff and...
Ger Cannoll
-
14 Years Ago
Hmmm....It's in System.ComponentModel, so not sure what your problem...
Greg McGuffey
-
14 Years Ago
Hi Greg. I removed the line and typeed it in again......and now it...
Ger Cannoll
-
14 Years Ago
[quote] I removed the line and typed it in again......and now it...
Greg McGuffey
-
14 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search