コード例 #1
0
            public override void ElementDeleted(ElementDeletedEventArgs e)
            {
                InterfaceInheritInterfaces link = e.ModelElement as InterfaceInheritInterfaces;

                if (link != null)
                {
                    RemoveTypedEntitySetConnectionFromNavigationProperties(link);
                }
            }
コード例 #2
0
            private void RemoveTypedEntitySetConnectionFromNavigationProperties(InterfaceInheritInterfaces link)
            {
                Interface targetInterface = link.TargetInheritByInterface;
                var       typedEntitySets = TypedEntitySetHasItemType.GetTypedEntitySets(targetInterface);

                if (typedEntitySets != null)
                {
                    foreach (TypedEntitySet typedEntitySet in typedEntitySets)
                    {
                        var navigationPropertiesLink = NavigationPropertyHasTypedEntitySet.GetTypedEntitySetNavigationProperties(typedEntitySet);
                        if (navigationPropertiesLink != null)
                        {
                            foreach (NavigationProperty navigationProperty in navigationPropertiesLink)
                            {
                            }
                        }
                    }
                }
            }