This is a migrated thread and some comments may be shown as answers.

Hide connections From and To from model in edit mode

0 Answers 40 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Michelle
Top achievements
Rank 1
Michelle asked on 25 Sep 2015, 05:33 PM
.Model(m =>
{
    m.Id(c => c.WorkflowTypeEventID);
    m.Field(c => c.WorkflowTypeEventID).Editable(false);
 
    m.Field(c => c.Name).Editable(true);
    m.Field(c => c.Description).Editable(true);
    m.Field(c => c.SortOrder).Editable(false);
    m.Field(c => c.EventType).Editable(false);
 
    //m.Field(c => c.WorkflowTypeStateID).Editable(false);
    //m.Field(c => c.NextWorkflowTypeStateID).Editable(false);
 
    m.From(c => c.WorkflowTypeStateID);
    m.To(c => c.NextWorkflowTypeStateID);
 
})

 

When I uncomment out the two lines both items are hidden when editing the connection but they do not pass the values to the Create method. If I comment them both out and create a connection it will pass both values to the models Create method.

 I am looking to hide both on edit but still send the values to the controller.

Thanks

No answers yet. Maybe you can help?

Tags
Diagram
Asked by
Michelle
Top achievements
Rank 1
Share this question
or