Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

How To #3

@a2dude

Description

@a2dude

Having used jaysvcutil I need some guidance with how best to utilise the output in a typescript project using vscode.

using jaysvcutil on http://odatav4-demo.jaystack.com:9000/odata generates a js file and a d.ts file.

None of the below work (exception thrown in each case):

        //var w = new JayDataContext();
        //var z = new Default.Container(
        //                                { name: "oData", 
         //                                 oDataServiceHost: "http://odatav4-demo.jaystack.com:9000/odata"}).onReady().then((ctx) => {
        //var x = JayDataContext.factory(
        //                                { name: "oData", 
        //                                  oDataServiceHost: "http://odatav4-demo.jaystack.com:9000/odata"}).onReady().then((ctx) => {

In addition when the static approach is taken u in orderby is strongly typed but u in the includes is not and has to be provided as a string. What gives?

        ctx.Users.orderBy(u => u.LoginName)
                .include('u => u.Profile')
                .include('u => u.Articles')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions