Skip to content
Discussion options

You must be logged in to vote

To make sure that your code can call BO.Property and get the actual value in the Insert/Update method.

    public static readonly PropertyInfo<int> IdProperty = RegisterProperty<int>(nameof(Id));
    public int Id
    {
      get { return GetProperty(IdProperty); }
      set { SetProperty(IdProperty, value); }
    }

Will eventually end up here:

    protected P GetProperty<P>(PropertyInfo<P> propertyInfo, Security.NoAccessBehavior noAccess)
    {
      P result = default(P);
      if (_bypassPropertyChecks || CanReadProperty(propertyInfo, noAccess == Csla.Security.NoAccessBehavior.ThrowException))
        result = ReadProperty<P>(propertyInfo);
      else
        result = propertyInfo.Def…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Brad-IMS
Comment options

Comment options

You must be logged in to vote
1 reply
@Brad-IMS
Comment options

Comment options

You must be logged in to vote
1 reply
@Brad-IMS
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Brad-IMS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants