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); }