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 CTP'Identifier expected' on AddCommonRules method
Previous Previous
 
Next Next
New Post
 5/29/2008 6:52 PM
 

Hello everybody,

 when I build my solutions, the compiler show me this error message:
'Identifier expected'

This is caused by this code:
private void AddCommonRules()
{
 Csla.Validation.DecoratedRuleArgs args;
 //
 args = new DecoratedRuleArgs("Id", "", RuleSeverity.Error, false);
       ValidationRules.AddRule(Csla.Validation.CommonRules., args, 0); 
}
 On line: ValidationRules.AddRule(Csla.Validation.CommonRules., args, 0);

Note that the object "Csla.Validation.CommonRules." is incomplete

This is a BUG?

Thanks

Rogerio

New Post
 5/29/2008 9:18 PM
 

Thanks for the hint. This occurs due to the type of your property (System.Guid) which is not recognized correctly in the CTP version.

Marcel

Previous Previous
 
Next Next
ForumForumSupportSupportCslaFactory CTPCslaFactory CTP'Identifier expected' on AddCommonRules method

   

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: 4
Members Members: 0
Total Total: 4

Online Now Online Now: