OData / lab

This repository is for exploring new ideas and developing early prototypes of various OData stacks.
Other
48 stars 59 forks source link

DefaultContainer? #38

Closed KevinBurton closed 8 years ago

KevinBurton commented 8 years ago

In the CRUD documentation I see a deference to the DefaultContainer. I am not sure where that is located. I cannot find it.

lgadola commented 8 years ago

same here, can't find a DefaultContainer

chinadragon0515 commented 8 years ago

If you use client code gen to generate the code, the class name of Container is same from the name in metadata, like for this sample case,

http://services.odata.org/V4/(S(v4sy5odkmnqt3e2xt0njhyvf))/TripPinServiceRW/$metadata

we can see "", so the generate class name will be DefaultContainer, but if your metadata has different name like Container, then the generate class name will be Container.

Check your metadata to see the name of EntityContainer, that will be your container class name.

BTW, this project is not actively monitor, and for CRUD document, it is related to odata.net project, open issues https://github.com/OData/odata.net for issue related to odata .net. And we recommend to ask questions in stackoverflow where whole community can help.

chinadragon0515 commented 8 years ago

As it is not an issue, close the issue.

dieterwiesflecker commented 4 years ago

Even as non-issue it helped!

MKaranusic commented 3 years ago

Super helpful 👍