コード例 #1
0
 public SapphirePropertyBuilder(PropertyInfo propertyInfo)
 {
     attributesInfo = typeof(TModel).GetPropertyAttributesInfos()
                      .FirstOrDefault(property => property.PropertyInfo == propertyInfo);
 }
コード例 #2
0
 public static bool CanUpdate(this PropertyAttributesInfo pi, HttpInformation httpInformation, object entityObject,
                              IServiceProvider serviceProvider)
 {
     return(HandleAuthAttributes(pi.UpdateAuthAttributes, httpInformation,
                                 SapphireAuthResource.OperationTypeEnum.Update, entityObject, serviceProvider));
 }