예제 #1
0
 public void BindAssociation(Association association)
 {
     Association = association;
     EntityType = null;
     if (association == null)
     {
         Visibility = Visibility.Collapsed;
         return;
     }
     nameTextBlock.Text = association.Name;
     Clear();
     Visibility = Visibility.Visible;
     var associationMapping = new AssociationMapping(association) { Tables = EDM.SSDLContainer.EntityTypes };
     associationMapping.TableComboBoxValue.ComboSelectedValue = association.Mapping.SSDLTableMapped;
     stackPanel.Children.Add(associationMapping);
 }
        public void BindAssociation(Association association)
        {
            Association = association;
            EntityType  = null;
            if (association == null)
            {
                Visibility = Visibility.Collapsed;
                return;
            }
            nameTextBlock.Text = association.Name;
            Clear();
            Visibility = Visibility.Visible;
            var associationMapping = new AssociationMapping(association)
            {
                Tables = EDM.SSDLContainer.EntityTypes
            };

            associationMapping.TableComboBoxValue.ComboSelectedValue = association.Mapping.SSDLTableMapped;
            stackPanel.Children.Add(associationMapping);
        }