Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated code does not compile when configuring an OdataConnectedService #80

Closed
raz-sinay opened this issue Jan 22, 2018 · 2 comments
Closed

Comments

@raz-sinay
Copy link

raz-sinay commented Jan 22, 2018

When createing an OdataConnectedService using the extension (from visual studio 2017 enterprise marketplace), the generated code does not compile and outputs the error :

Error CS0234 The type or namespace name 'EdmxReader' does not exist in the namespace 'Microsoft.OData.Edm.Csdl' (are you missing an assembly reference?)

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

juliopinto15 added a commit to juliopinto15/lab that referenced this issue Apr 3, 2018
Resolution of this issue
Generated code does not compile when configuring an OdataConnectedService OData#80
@unchase
Copy link

unchase commented Apr 15, 2019

You can try Unchase OData ConnectedService for checking this issue.

@habbes
Copy link
Contributor

habbes commented Mar 4, 2020

Hi @raz-sinay The latest release of OData Connected Service on VS Marketplace fixes this issue: https://marketplace.visualstudio.com/items?itemName=laylaliu.ODataConnectedService

@habbes habbes closed this as completed Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants