Example #1
0
        public void VisitProperty(IEdmProperty property)
        {
            EdmPropertyKind propertyKind = property.PropertyKind;

            switch (propertyKind)
            {
            case EdmPropertyKind.Structural:
            {
                this.ProcessStructuralProperty((IEdmStructuralProperty)property);
                return;
            }

            case EdmPropertyKind.Navigation:
            {
                this.ProcessNavigationProperty((IEdmNavigationProperty)property);
                return;
            }

            case EdmPropertyKind.None:
            {
                this.ProcessProperty(property);
                return;
            }
            }
            throw new InvalidOperationException(Strings.UnknownEnumVal_PropertyKind(property.PropertyKind.ToString()));
        }
 public static Predicate <IEdmProperty> OfKind(EdmPropertyKind propertyKind)
 {
     return(x => x.PropertyKind == propertyKind);
 }
 public static Predicate<IEdmProperty> OfKind(EdmPropertyKind propertyKind)
 {
     return x => x.PropertyKind == propertyKind;
 }