internal EdmModelCsdlSerializationVisitor(IEdmModel model, EdmModelCsdlSchemaWriter edmWriter) : base(model) { this.schemaWriter = edmWriter; this.namespaceAliasMappings = this.schemaWriter.NamespaceAliasMappings; this.isXml = this.schemaWriter is EdmModelCsdlSchemaXmlWriter; }
internal EdmModelCsdlSerializationVisitor(IEdmModel model, XmlWriter xmlWriter, Version edmVersion) : base(model) { this.edmVersion = edmVersion; this.namespaceAliasMappings = model.GetNamespaceAliases(); this.schemaWriter = new EdmModelCsdlSchemaWriter(model, this.namespaceAliasMappings, xmlWriter, this.edmVersion); }
private static string GetEntitySetString(IEdmOperationImport operationImport) { if (operationImport.EntitySet != null) { var pathExpression = operationImport.EntitySet as IEdmPathExpression; if (pathExpression != null) { return(EdmModelCsdlSchemaWriter.PathAsXml(pathExpression.PathSegments)); } } return(null); }
private static string GetEntitySetString(IEdmOperationImport operationImport) { if (operationImport.EntitySet != null) { var entitySetReference = operationImport.EntitySet as IEdmEntitySetReferenceExpression; if (entitySetReference != null) { return(entitySetReference.ReferencedEntitySet.Name); } else { var pathExpression = operationImport.EntitySet as IEdmPathExpression; if (pathExpression != null) { return(EdmModelCsdlSchemaWriter.PathAsXml(pathExpression.Path)); } } } return(null); }
internal EdmModelReferenceElementsVisitor(IEdmModel model, XmlWriter xmlWriter, Version edmxVersion) { this.schemaWriter = new EdmModelCsdlSchemaWriter(model, model.GetNamespaceAliases(), xmlWriter, edmxVersion); }