public void BindPropertyWith(IPropertyBinder binder, Expression <Func <T, object> > property, string rawValue = null) { if (rawValue != null) { Data(property, rawValue); } var prop = property.ToAccessor().InnerProperty; _actions.Add(context => StandardModelBinder.PopulatePropertyWithBinder(prop, context, binder)); }
public void BindPropertyWith(IPropertyBinder binder, Expression <Func <T, object> > property, string rawValue = null) { if (rawValue != null) { Data(property, rawValue); } var prop = property.ToAccessor().InnerProperty; _actions.Add(context => { if (Model == null) { Model = new T(); } context.ForObject(Model, () => { Logger.Chose(typeof(T), new PropertyModelBinderStandin()); StandardModelBinder.PopulatePropertyWithBinder(prop, context, binder); Logger.FinishedModel(); }); }); }