2011-01-11 4 views

답변

2

: 기본적으로

/// <summary> 
/// Returns <see langword="true" /> if the user is allowed to read the 
/// calling property. 
/// </summary> 
/// <param name="property">Property to check.</param> 
[EditorBrowsable(EditorBrowsableState.Advanced)] 
public virtual bool CanReadProperty(Csla.Core.IPropertyInfo property) 
{ 
    bool result = true; 

    VerifyAuthorizationCache(); 

    if (!_readResultCache.TryGetValue(property.Name, out result)) 
    { 
    result = BusinessRules.HasPermission(AuthorizationActions.ReadProperty, property); 
    // store value in cache 
    _readResultCache[property.Name] = result; 
    } 

    return result; 
} 
1

당신이 개별 속성에 대한 서로 다른 액세스 권한을 가질 수는 비즈니스 객체.

0

데이터 계약 등록 정보에 특정 액세스 권한을 부여합니다.

관련 문제