protected void SetAutoLoadBehavior(AutoLoadBehavior autoLoad) { var binder = (ARDataBinder)Binder; binder.AutoLoad = autoLoad; }
/// <summary> /// Binds the object. /// </summary> /// <param name="from">Defines where the parameters should be obtained from.</param> /// <param name="targetType">Type of the target.</param> /// <param name="prefix">The prefix.</param> /// <param name="autoLoad">The auto load behavior.</param> /// <returns></returns> protected object BindObject(ParamStore from, Type targetType, String prefix, AutoLoadBehavior autoLoad) { SetAutoLoadBehavior(autoLoad); return(BindObject(from, targetType, prefix)); }
protected void BindObjectInstance(object instance, String prefix, AutoLoadBehavior autoLoad) { SetAutoLoadBehavior(autoLoad); BindObjectInstance(instance, ParamStore.Params, prefix); }
protected void SetAutoLoadBehavior(AutoLoadBehavior autoLoad) { ARDataBinder binder = (ARDataBinder) Binder; binder.AutoLoad = autoLoad; }
/// <summary> /// Binds the object using the posted values. /// </summary> /// <param name="from">Defines where the parameters should be obtained from.</param> /// <param name="targetType">Type of the target.</param> /// <param name="prefix">The prefix.</param> /// <param name="excludedProperties">The excluded properties.</param> /// <param name="allowedProperties">The allowed properties.</param> /// <param name="autoLoad">The auto load behavior.</param> /// <returns></returns> protected object BindObject(ParamStore from, Type targetType, String prefix, String excludedProperties, String allowedProperties, AutoLoadBehavior autoLoad) { SetAutoLoadBehavior(autoLoad); return(BindObject(from, targetType, prefix, excludedProperties, allowedProperties)); }
/// <summary> /// Binds the object. /// </summary> /// <param name="from">Defines where the parameters should be obtained from.</param> /// <param name="targetType">Type of the target.</param> /// <param name="prefix">The prefix.</param> /// <param name="autoLoad">The auto load behavior.</param> /// <returns></returns> protected object BindObject(ParamStore from, Type targetType, String prefix, AutoLoadBehavior autoLoad) { SetAutoLoadBehavior(autoLoad); return BindObject(from, targetType, prefix); }
/// <summary> /// Binds the object using the posted values. /// </summary> /// <param name="from">Defines where the parameters should be obtained from.</param> /// <param name="targetType">Type of the target.</param> /// <param name="prefix">The prefix.</param> /// <param name="excludedProperties">The excluded properties.</param> /// <param name="allowedProperties">The allowed properties.</param> /// <param name="autoLoad">The auto load behavior.</param> /// <returns></returns> protected object BindObject(ParamStore from, Type targetType, String prefix, String excludedProperties, String allowedProperties, AutoLoadBehavior autoLoad) { SetAutoLoadBehavior(autoLoad); return BindObject(from, targetType, prefix, excludedProperties, allowedProperties); }
/// <summary> /// Defines a binder for the parameter /// using the <see cref="ARDataBinder"/> and the /// specified <c>prefix</c>. /// </summary> /// <param name="prefix">A name that prefixes the entries on the http request</param> /// <param name="autoLoadBehavior">The predefined behavior the autoload feature should use</param> public ARDataBindAttribute(String prefix, AutoLoadBehavior autoLoadBehavior) : base(prefix) { autoLoad = autoLoadBehavior; }
protected void SetAutoLoadBehavior(AutoLoadBehavior autoLoad) { var binder = (Dry.Common.ActiveRecord.ARDataBinder)Binder; binder.AutoLoad = autoLoad; }
public ARDataBindAttribute(string prefix, AutoLoadBehavior autoLoadBehavior) : base(prefix) { AutoLoad = autoLoadBehavior; Expect = null; TreatEmptyGuidAsNull = true; }