0

I have a .csdl file downloaded and am trying to convert them to model class files (.cs). I tried edmgen which did not work because I was using "http://docs.oasis-open.org/odata/ns/edm" as the schema.

When i use edmgen with the command mentioned in comments I receive and error saying " the EDM Schema argument is not valid " and the EDM schema is "http://docs.oasis-open.org/odata/ns/edm" which I cannot change to other schemas.

What is the best way to do the conversion using the above schema?

HEART94
  • 307
  • 2
  • 10
  • Please include a code sample showing us what you've tried and include as much details as possible. – Daniel Mar 06 '19 at 01:01
  • **"%windir%\Microsoft.NET\Framework\v4.0.30319\edmgen.exe" /mode:EntityClassGeneration /incsdl:.\.csdl /outobjectlayer:.\.cs /language:CSharp** This is the code I used when I tried with edmgen – HEART94 Mar 06 '19 at 01:04
  • The schema link you provided are only a subset of the entire schema. You have to create your own top level schema that uses the link shown. – jdweng Mar 06 '19 at 06:06

0 Answers0