Giter Site home page Giter Site logo

Comments (3)

unchase avatar unchase commented on June 11, 2024

Classes are generated according to the metadata schema. If there is a class "Uri" in the metadata, then it will be generated.
When initializing the container, you must specify the correct namespace for Uri (System.Uri).
In addition, you can exclude a class after generation by deleting it if it is not needed.

from unchase.odata.connectedservice.

premiaware avatar premiaware commented on June 11, 2024

Ok i have fix the problem,
but now i have this error: (you can help to me?)

Error CS0234 The type or namespace name 'Text' does not exist in the namespace 'FastHomeMobile.LogicUI.DataSource.System' (are you missing an assembly reference?) FastHomeMobile.LogicUI C:\Work\UniversalApps\FastHomeMobile\FastHomeMobile.LogicUI\Service References\FHServices\Reference.cs 57973 Active

the row:
global::System.Text.StringBuilder errorMessages = new System.Text.StringBuilder();
is must manual replace it with:
global::System.Text.StringBuilder errorMessages = new global::System.Text.StringBuilder();

the complete code is:

private static global::Microsoft.OData.Edm.IEdmModel LoadModelFromString()
{
global::System.Xml.XmlReader reader = CreateXmlReader(Edmx);
try
{
global::System.Collections.Generic.IEnumerableglobal::Microsoft.OData.Edm.Validation.EdmError errors;
global::Microsoft.OData.Edm.IEdmModel edmModel;

                if (!global::Microsoft.OData.Edm.Csdl.CsdlReader.TryParse(reader, true, out edmModel, out errors))
                {
                    global::System.Text.StringBuilder errorMessages = new System.Text.StringBuilder();
                    foreach (var error in errors)
                    {
                        errorMessages.Append(error.ErrorMessage);
                        errorMessages.Append("; ");
                    }
                    throw new global::System.InvalidOperationException(errorMessages.ToString());
                }

                return edmModel;
            }
            finally
            {
                ((global::System.IDisposable)(reader)).Dispose();
            }
        }

from unchase.odata.connectedservice.

unchase avatar unchase commented on June 11, 2024

Can you send to [email protected] the metadata file?

from unchase.odata.connectedservice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.