Closed raz-sinay closed 4 years ago
You can try Unchase OData ConnectedService for checking this issue.
Hi @raz-sinay The latest release of OData Connected Service on VS Marketplace fixes this issue: https://marketplace.visualstudio.com/items?itemName=laylaliu.ODataConnectedService
When createing an OdataConnectedService using the extension (from visual studio 2017 enterprise marketplace), the generated code does not compile and outputs the error :
Problematic code :
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "2.4.0")]
private static global::Microsoft.OData.Edm.IEdmModel LoadModelFromString()
{
global::System.Xml.XmlReader reader = CreateXmlReader(Edmx);
try
{
return global::Microsoft.OData.Edm.Csdl.EdmxReader.Parse(reader);
}
finally
{
((global::System.IDisposable)(reader)).Dispose();
}
}
The type EdmxReader should be replaced with CsdlReader as referenced in issue#632