public override object GetPropertyValue(IItem item, IMdbPropertyMappingContext context)
 {
     if (this.ItemGetter == null)
     {
         throw new NotImplementedException(this.PropertyDefinition.Name);
     }
     return(this.ItemGetter(item, this.StorePropertyDefinition, context));
 }
 public override void SetPropertyValue(IItem item, object value, IMdbPropertyMappingContext context)
 {
     if (this.ItemSetter == null)
     {
         throw new NotImplementedException(this.PropertyDefinition.Name);
     }
     this.ItemSetter(item, this.StorePropertyDefinition, value, context);
 }
Esempio n. 3
0
 public override void SetPropertyValue(IItem item, object value, IMdbPropertyMappingContext context)
 {
     if (this.SetterTransform != null)
     {
         value = this.SetterTransform(this.PropertyDefinition, base.StorePropertyDefinition, value);
     }
     base.SetPropertyValue(item, value, context);
 }
Esempio n. 4
0
        public override object GetPropertyValue(IItem item, IMdbPropertyMappingContext context)
        {
            object propertyValue = base.GetPropertyValue(item, context);

            if (this.GetterTransform == null)
            {
                return(propertyValue);
            }
            return(this.GetterTransform(this.PropertyDefinition, base.StorePropertyDefinition, propertyValue));
        }
 internal static object DefaultItemGetter(IItem item, StorePropertyDefinition propertyDefinition, IMdbPropertyMappingContext context)
 {
     return(item.TryGetProperty(propertyDefinition));
 }
 internal static void DefaultItemSetter(IItem item, StorePropertyDefinition propertyDefinition, object value, IMdbPropertyMappingContext context)
 {
     item.SetOrDeleteProperty(propertyDefinition, value);
 }
Esempio n. 7
0
 private static object GetRecipientsCc(IItem item, StorePropertyDefinition propertyDefinition, IMdbPropertyMappingContext context)
 {
     return(MdbPeoplePropertyMap.GetRecipients(item, RecipientItemType.Cc));
 }
 public override void SetPropertyValue(IItem item, object value, IMdbPropertyMappingContext context)
 {
     throw new NotImplementedException();
 }