Wednesday, September 08, 2010 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
 
ForumForumSupportSupportCslaFactory CTPCslaFactory CTPProtected constructorProtected constructor
Previous Previous
 
Next Next
New Post
 8/21/2008 2: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 3: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 Previous
 
Next Next
ForumForumSupportSupportCslaFactory CTPCslaFactory CTPProtected constructorProtected constructor

   

UsersOnline
Membership Membership:
Latest New User Latest: weikol
Past 24 Hours Past 24 Hours: 1
Prev. 24 Hours Prev. 24 Hours: 1
User Count Overall: 1381

People Online People Online:
Visitors Visitors: 7
Members Members: 0
Total Total: 7

Online Now Online Now: