You don't have any intellisense on that because the objects like
DeliveriesForToday doesn't exist yet. In your code example the datasource name is
DeliveriesForToday, but in your text you said it called "GetDeliveriesForToday". I think that is your problem. You need to call it like in your code sample. If that wouldn't work, I would recomend you to startup
the page and look what's inserted in code.
The "@(Html.UpshotContext().DataSource<DataServicesController>(x => x.GetDeliveriesForToday()))" line of code generates some code for you, and also sets the datasource name you can use in your personal code.
KDegrave
Member
96 Points
25 Posts
Re: Single Page Application - Prerequirement
Apr 07, 2012 06:44 AM|LINK
hi,
You don't have any intellisense on that because the objects like DeliveriesForToday doesn't exist yet. In your code example the datasource name is DeliveriesForToday, but in your text you said it called "GetDeliveriesForToday". I think that is your problem. You need to call it like in your code sample. If that wouldn't work, I would recomend you to startup the page and look what's inserted in code.
The "@(Html.UpshotContext().DataSource<DataServicesController>(x => x.GetDeliveriesForToday()))" line of code generates some code for you, and also sets the datasource name you can use in your personal code.
Kristof
Ria4HTML: http://ria4htmldemo.codeplex.com
Linq2IndexedDB: http://linq2indexeddb.codeplex.com