ODataSamples icon indicating copy to clipboard operation
ODataSamples copied to clipboard

DynamicEdmModelCreation not working in V6

Open samualjacksonau opened this issue 8 years ago • 6 comments

I wondering if anyone has sucessfully mananged to build & run DynamicEdmModelCreation project in V6/6.1 beta?

samualjacksonau avatar Aug 25 '17 00:08 samualjacksonau

Hi @samualjacksonau what issues/errors are you running into? I'm asking because we also have a dynamic edm model project and is planing to move to V6.

oucfei avatar Nov 17 '17 19:11 oucfei

Hi folks,

even if this issue is a little bit older: I just updated all dependencies of the DynamicEdmModelCreation sample to their latest versions and the following issues/errors occur.

Microsoft.OData.Core 7.4.1 Microsoft.AspNet.OData 6.1.0

  • HandleAllController:

    • The class PropertyAccessPathSegment does not exist anymore.
    • The class NavigationPathSegment does not exist anymore.
  • CustomODataPathRouteConstraint:

    • The class ODataPathRouteConstraint:
      • Only has a constructor that accept one parameter: the route name.
      • The property PathHandler does not exist anymore.
    • The class HttpRequestMessageProperties:
      • The property Model does not exist anymore.
      • The property PathHandler does not exist anymore.
      • The property RoutingConventions does not exist anymore.
    • The class ODataException moved to another namespace.
  • MatchAllRoutingConvention:

    • The class NavigationPathSegment does not exist anymore.
    • The class KeyValuePathSegment does not exist anymore.
    • The class EntitySetPathSegment does not exist anymore.

The rest is only changed or no longer existing namespaces.

Cheers, Matt

mgernand avatar Mar 06 '18 19:03 mgernand

Hi folks,

I just added a comment in another issue that also addresses this problem.

See: https://github.com/OData/ODataSamples/issues/50#issuecomment-371590377

I'll take a look and hope to update the sample soon.

Cheers, Matt

mgernand avatar Mar 08 '18 19:03 mgernand

Hi folks,

I just added a pull request which fixes the dynamic model creation sample for v6. :-)

Pull Request: #67

Cheers, Matt

mgernand avatar Mar 12 '18 14:03 mgernand

Hi Guys, :-) It seems you all already worked much in EDM dynamics model. I recently created one issue, just wanted to know, if anyone of you face this issue #70 , where child/asociate record not coming in result?

Thanks.

piyushparate1 avatar May 15 '18 01:05 piyushparate1

All Seems this has been open for a while - I have managed to get the EDM Dynamic Model working with 7.3 in DotNetCore 3.1 based on this article, however I notice that the ServiceDocument (based on the /odata/ default route) does not work...not sure it ever did in 2.2 ?

Any hints or direction on resolving this would be great!

It seems updating the samples would be of great value to the community as a whole - as the basic use cases I real usage are probably more an exception than the rule, and this and the other samples provide a great starting point for real usage scenarios.

acds avatar Feb 26 '20 16:02 acds