-
Notifications
You must be signed in to change notification settings - Fork 95
Uncaught TypeError: Cannot read property 'LogicalType' of undefined #116
Comments
how do you create the context ? which browser do you use ? |
I am using Chrome 28. Here is the code I use to create the context:
|
Great, our guess is that you begin to use the context right after the creation. YourContextInstance.onReady(function() {
//Work with context now
}); This is necessary, because the context creation requires some time. Using the onReady helps you to make sure you are working on a context instance that was successfully inialized. does this fix the problem? |
No this does not solve it. Here is the code I use to try to fetch data: dataService.onReady(function () { |
did you include datajs before jaydata ? |
Yes Sent from my Windows Phone From: agdollamailto:notifications@github.com did you include datajs before jaydata ? Reply to this email directly or view it on GitHub: |
OK, I could reproduce it, you can see it here :) http://jsfiddle.net/JayData/CsWd8/ |
to me this looks like a problem: could you share your $metadata ? |
Ok, here is the metadata: |
The problem is that certain entitysets are missing like WorkExchangeCodeLocation and other entities refer to these entities as navigation properties like WorkExchangeCode. This is not supported.
|
That is what I was afraid of. Adding the IgnoreDataMember attribute to properties I don't need in this API is also an option. In the end I think I will just have to create a new model and do mapping on the server. Trying to expose just those properties needed seems like a hassle no matter how you look at it. |
Hi There!
I just started using JayData 1.3.1(with AngularJS 1.1.5 and ASP.Net WebAPI Odata backend(5.0.0-beta2 nuget package) with Entity Framework 5.0 Code First for data access.
I was able to generate the proxy classes using your utility and now when I create the context I get the error:
Uncaught TypeError: Cannot read property 'LogicalType' of undefined (line 10401 in JayData.js in the function _buildDbType_navigationPropertyComplite)
Here is the file with the proxy classes:
https://skydrive.live.com/redir?resid=546F075BD4456095!7728&authkey=!AK5PqA08PG0JZfs
Any suggestions?
The text was updated successfully, but these errors were encountered: