public RelationshipViewDialog(nHydrateModel model, Microsoft.VisualStudio.Modeling.Store store, EntityHasViews connector, bool allowConfigure) : this() { try { _connector = connector; _model = model; _store = store; _allowConfigure = allowConfigure; //Load the Form var parent = connector.ParentEntity; lblPrimaryTable.Text = parent.Name; if (!allowConfigure) { lblSecondaryTable.Text = connector.ChildView.Name; } LoadRelation(); if (_allowConfigure) { cboChildTable.Items.Clear(); foreach (var entity in _model.Entities.OrderBy(x => x.Name)) { cboChildTable.Items.Add(entity.Name); } lblSecondaryTable.Visible = false; cboChildTable.Visible = true; } } catch (Exception ex) { throw; } }
public RelationshipViewDialog(nHydrateModel model, Microsoft.VisualStudio.Modeling.Store store, EntityHasViews connector) : this(model, store, connector, false) { }