Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum

CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • syntax for csla 4

    rated by 0 users
    Answered (Not Verified) This post has 0 verified answers | 2 Replies | 2 Followers

    Top 500 Contributor
    18 Posts
    gullu posted on Mon, Aug 20 2012 9:12 AM

    In my pre csla 4 code I have

            protected override void DataPortal_Create()
                _userID = -1;
                ValidationRules.CheckRules();  //cannot resolve ValidationRule  compile error here

    What is the syntax when porting to csla 4.0 ? thanks

    All Replies

    Top 500 Contributor
    18 Posts
    Answered (Not Verified) gullu replied on Mon, Aug 20 2012 10:15 AM
    Suggested by gullu

    Found it.  BusinessRules.CheckRules();


    Top 75 Contributor
    114 Posts

    BusinessRules.CheckRules(); // returns the names of affected properties

    Page 1 of 1 (3 items) | RSS

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems