Exemple #1
0
 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);
 }
Exemple #2
0
        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);
        }
 internal EdmModelReferenceElementsVisitor(IEdmModel model, XmlWriter xmlWriter, Version edmxVersion)
 {
     this.schemaWriter = new EdmModelCsdlSchemaWriter(model, model.GetNamespaceAliases(), xmlWriter, edmxVersion);
 }