Skip to content

Support declarative ApiVersion over OData entity to build versioned odata model #359

@chuanboz

Description

@chuanboz

In OData Model Configurations, it mentioned the programing way to build versioned odata model with Ignore method, that's working but not so developer friendly.

The ask here is to support declarative way to annotate OData entity with the ApiVersion attribute, something like this without the need to manually specify PersonModelConfiguration.

public class Person
{
    public int Id { get; set; }
    public string FirstName { get; set; }
    public string LastName { get; set; }

    [ApiVersion("2.0")]
    public string Email { get; set; }

    [ApiVersion("3.0")]
    public string Phone { get; set; }
}

Or, provide an out-of-box implementation for VesionedEntityModelConfiguration.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions