Thursday, February 09, 2012 Register    Login
Instructions

In order to add new threads or reply to existing posts, you have to be logged-in. If you are not registered yet, you need to register first, and then login with your personal credentials.

   

CslaFactory Forums
HomeHomeSupportSupportCslaFactory CTPCslaFactory CTPProtected constructorProtected constructor
Previous
 
Next
New Post
8/21/2008 3:51 PM
 

Hi

I want to subclass the business objects created by CslaFactory. However when I declare a new class as a subclass of a class generated by CslaFactory I get the compiler error message:

Class.Class() is inaccessible due to its protection level

This happens because the constructor is marked as "private". This problem can be solved by changing the protection level to "protected" instead.

I realize that I can change the templates myself but I would be easier if this was standard by CslaFactory.

I don't think that this change should cause any problems.

 
New Post
8/21/2008 4:08 PM
 

Hi Peter,

this is a good idea. I will change the templates, so the constructors will be "protected" by default.

 

Regards,

Marcel

 
Previous
 
Next
HomeHomeSupportSupportCslaFactory CTPCslaFactory CTPProtected constructorProtected constructor


   

UsersOnline
Membership Membership:
Latest New User Latest: jerrytrucks
Past 24 Hours Past 24 Hours: 0
Prev. 24 Hours Prev. 24 Hours: 1
User Count Overall: 1588

People Online People Online:
Visitors Visitors: 1
Members Members: 0
Total Total: 1

Online Now Online Now: