Comments (3)
Hi David
Yes, by schema I mean the source code generated by ODataApiGen and include it in the main angular module as part of your project. In theory, if you insert the services generated from this module, they have a text string that defines the parser for the entity handled by the service.
In the example project there are several APIs included in the main module that exemplify this.
The generator generates two main components to include in the root module the config and the module
One thing does not imply the other :),
I think also the base services for entities needed some work, at least to remove the ambiguity between entity
and key
.
Change their behavior by making the update
, patch
and destroy
signatures wait to receive the key and reserve for the save shortcut some of what I would expect to get if I have schema associated with the entity handled by the service.
These days I see how the library behaves with the project where it fulfills its function :)
And after being tested in production :O i release the new version.
Regards
from angular-odata.
hi David
I am reviewing the functionality of the services based on the problem you reported, there are several things to improve.
The library has to work with or without an associated schema; a vice of my way of working is neglecting the code when there is no schema ...
For example: when an update (PUT), an assign (PATCH) or a destroy (DELETE) is made ... if there is a schema, the key of the entity is resolved based on it ... and since in the case from your example the key is the UserName (but you shouldn't be using an associated schema right?)
After seeing the code ... I think it is very feasible to improve the services to work without a schema.
I see to solve it these days ...
There are other similar problems reported and even users asking for some documentation regarding the entity modification functions.
Thanks and regards
Diego
from angular-odata.
Hi Diego,
Thanks for the quick response, I saw that you already submitted a fix. Pretty fast! :)
To be honest, I'm not really sure how what you mean under using it with schema... I generated the OData classes with your ODataApiGen based on the metadata, so I assumed it is using the schema. What can I do to work with the schema?
Thanks and Best regards,
David
from angular-odata.
Related Issues (20)
- How expensive is creating an oDataServiceFactory. Can it be stored in a singelton? HOT 4
- Updated - Clone? Filter? Select? HOT 6
- '"angular-odata"' has no exported member named 'ODataFunctionOptions'. Did you mean 'ODataEntityOptions'?
- Angular 14 Support? HOT 1
- publish angular 14 update :-)
- Would like library replace single quote in Odata query by default HOT 1
- how to /(S(juqvmnem2qpijynyewk4pld5))/People('russellwhyte')?$expand=Trips($top=2;$skip=1) HOT 2
- "this.options.helper.context is not a function" HOT 1
- how to access all properties in raw json reply HOT 4
- skiptoken of annotations returns wrong result when it include - (hyphen) HOT 1
- No easy way to provide config asynchronously HOT 2
- Custom entity update endpoint address HOT 1
- Broken .exec method since update to 0.121? HOT 2
- Inline annotations support for parsing metadata xml documents?
- Semicolons should be encoded as %3B ? HOT 2
- replacement of OdataEntityService.customCollectionAction in the latest version HOT 1
- How to perform deep filtering HOT 2
- could you please explain why the preferred http method is PUT but not PATCH HOT 1
- Introduce `provideODataClient()` for standalone Angular apps HOT 7
- `query.orderBy()` usage HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-odata.