/// <summary> /// Creates the conversion arguments. /// </summary> /// <param name="bindingDetail"> /// The binding detail. /// </param> /// <param name="values"> /// The values. /// </param> /// <param name="fieldCollection"> /// The field Collection. /// </param> /// <param name="web"> /// The web. /// </param> /// <returns> /// The conversion arguments. /// </returns> protected internal override ConversionArguments GetConversionArguments(EntityBindingDetail bindingDetail, IDictionary<string, object> values, SPFieldCollection fieldCollection, SPWeb web) { var listItemValues = values as ISharePointListItemValues; if (listItemValues != null) { return new SharePointListItemConversionArguments(bindingDetail.EntityProperty.Name, bindingDetail.EntityProperty.PropertyType, bindingDetail.ValueKey, listItemValues.ListItem, values); } else { return base.GetConversionArguments(bindingDetail, values, fieldCollection, web); } }
/// <summary> /// Gets the conversion arguments. /// </summary> /// <param name="bindingDetail">The binding detail.</param> /// <param name="values">The values.</param> /// <returns>The conversion arguments.</returns> protected internal virtual ConversionArguments GetConversionArguments(EntityBindingDetail bindingDetail, IDictionary<string, object> values, SPFieldCollection fieldCollection, SPWeb web) { return new ConversionArguments(bindingDetail.EntityProperty.Name, bindingDetail.EntityProperty.PropertyType, bindingDetail.ValueKey); }
/// <summary> /// Adds the property. /// </summary> /// <param name="detail">The detail.</param> protected internal void AddProperty(EntityBindingDetail detail) { this.BindingDetails.AddLast(detail); }