Beispiel #1
0
 protected virtual void VisitComplexType(ComplexType item)
 {
     this.VisitMetadataItem((MetadataItem)item);
     if (item.Properties.Count <= 0)
     {
         return;
     }
     EdmModelVisitor.VisitCollection <EdmProperty>((IEnumerable <EdmProperty>)item.Properties, new Action <EdmProperty>(this.VisitEdmProperty));
 }
Beispiel #2
0
 protected internal virtual void VisitRowType(RowType rowType)
 {
     this.VisitMetadataItem((MetadataItem)rowType);
     if (rowType.DeclaredProperties.Count <= 0)
     {
         return;
     }
     EdmModelVisitor.VisitCollection <EdmProperty>((IEnumerable <EdmProperty>)rowType.DeclaredProperties, new Action <EdmProperty>(this.VisitEdmProperty));
 }
Beispiel #3
0
 protected virtual void VisitEdmAssociationConstraint(ReferentialConstraint item)
 {
     if (item == null)
     {
         return;
     }
     this.VisitMetadataItem((MetadataItem)item);
     if (item.ToRole != null)
     {
         this.VisitEdmAssociationEnd(item.ToRole);
     }
     EdmModelVisitor.VisitCollection <EdmProperty>((IEnumerable <EdmProperty>)item.ToProperties, new Action <EdmProperty>(this.VisitEdmProperty));
 }
Beispiel #4
0
 protected virtual void VisitAssociationTypes(IEnumerable <AssociationType> associationTypes)
 {
     EdmModelVisitor.VisitCollection <AssociationType>(associationTypes, new Action <AssociationType>(this.VisitEdmAssociationType));
 }
Beispiel #5
0
 protected virtual void VisitDeclaredNavigationProperties(
     EntityType entityType,
     IEnumerable <NavigationProperty> navigationProperties)
 {
     EdmModelVisitor.VisitCollection <NavigationProperty>(navigationProperties, new Action <NavigationProperty>(this.VisitEdmNavigationProperty));
 }
Beispiel #6
0
 protected virtual void VisitDeclaredProperties(
     EntityType entityType,
     IList <EdmProperty> properties)
 {
     EdmModelVisitor.VisitCollection <EdmProperty>((IEnumerable <EdmProperty>)properties, new Action <EdmProperty>(this.VisitEdmProperty));
 }
Beispiel #7
0
 protected virtual void VisitEnumMembers(EnumType enumType, IEnumerable <EnumMember> members)
 {
     EdmModelVisitor.VisitCollection <EnumMember>(members, new Action <EnumMember>(this.VisitEdmEnumTypeMember));
 }
Beispiel #8
0
 protected virtual void VisitAssociationSets(
     EntityContainer container,
     IEnumerable <AssociationSet> associationSets)
 {
     EdmModelVisitor.VisitCollection <AssociationSet>(associationSets, new Action <AssociationSet>(this.VisitEdmAssociationSet));
 }
Beispiel #9
0
 protected virtual void VisitFunctionParameters(IEnumerable <FunctionParameter> parameters)
 {
     EdmModelVisitor.VisitCollection <FunctionParameter>(parameters, new Action <FunctionParameter>(this.VisitFunctionParameter));
 }
Beispiel #10
0
 protected internal virtual void VisitFunctions(IEnumerable <EdmFunction> functions)
 {
     EdmModelVisitor.VisitCollection <EdmFunction>(functions, new Action <EdmFunction>(this.VisitEdmFunction));
 }
Beispiel #11
0
 protected virtual void VisitEnumTypes(IEnumerable <EnumType> enumTypes)
 {
     EdmModelVisitor.VisitCollection <EnumType>(enumTypes, new Action <EnumType>(this.VisitEdmEnumType));
 }
Beispiel #12
0
 protected virtual void VisitDeclaredProperties(
     ComplexType complexType,
     IEnumerable <EdmProperty> properties)
 {
     EdmModelVisitor.VisitCollection <EdmProperty>(properties, new Action <EdmProperty>(this.VisitEdmProperty));
 }
Beispiel #13
0
 protected virtual void VisitComplexTypes(IEnumerable <ComplexType> complexTypes)
 {
     EdmModelVisitor.VisitCollection <ComplexType>(complexTypes, new Action <ComplexType>(this.VisitComplexType));
 }
Beispiel #14
0
 protected internal virtual void VisitFunctionImports(
     EntityContainer container,
     IEnumerable <EdmFunction> functionImports)
 {
     EdmModelVisitor.VisitCollection <EdmFunction>(functionImports, new Action <EdmFunction>(this.VisitFunctionImport));
 }
Beispiel #15
0
 protected virtual void VisitAnnotations(
     MetadataItem item,
     IEnumerable <MetadataProperty> annotations)
 {
     EdmModelVisitor.VisitCollection <MetadataProperty>(annotations, new Action <MetadataProperty>(this.VisitAnnotation));
 }
Beispiel #16
0
 protected internal virtual void VisitFunctionReturnParameters(
     IEnumerable <FunctionParameter> returnParameters)
 {
     EdmModelVisitor.VisitCollection <FunctionParameter>(returnParameters, new Action <FunctionParameter>(this.VisitFunctionReturnParameter));
 }
Beispiel #17
0
 protected virtual void VisitEntityContainers(IEnumerable <EntityContainer> entityContainers)
 {
     EdmModelVisitor.VisitCollection <EntityContainer>(entityContainers, new Action <EntityContainer>(this.VisitEdmEntityContainer));
 }
Beispiel #18
0
 protected virtual void VisitEntitySets(
     EntityContainer container,
     IEnumerable <EntitySet> entitySets)
 {
     EdmModelVisitor.VisitCollection <EntitySet>(entitySets, new Action <EntitySet>(this.VisitEdmEntitySet));
 }