/// <summary> /// Creates a new Action that sometimes binds to Collection(EntityType). /// </summary> /// <param name="name">The name of the Action</param> /// <returns>An <see cref="ActionConfiguration"/> to allow further configuration of the Action.</returns> public ActionConfiguration TransientAction(string name) { Contract.Assert(ModelBuilder != null); ActionConfiguration configuration = ModelBuilder.Action(name); configuration.SetBindingParameter(BindingParameterConfiguration.DefaultBindingParameterName, this, alwaysBindable: false); return(configuration); }
/// <summary> /// Creates a new Action that binds to Collection(EntityType). /// </summary> /// <param name="name">The name of the Action</param> /// <returns>An <see cref="ActionConfiguration"/> to allow further configuration of the Action.</returns> public ActionConfiguration Action(string name) { Contract.Assert(ModelBuilder != null); ActionConfiguration configuration = ModelBuilder.Action(name); configuration.SetBindingParameter(BindingParameterConfiguration.DefaultBindingParameterName, this); return(configuration); }