Using the ODataConventionModelBuilder
and its EntitySet<>
functionality, is it possible to rename the names of properties on the entity sets?
Let's say I have an entity set type, Foo
. It has two properties, Bar
and Baz
. However, in my OData model, I'd like the properties to instead to named Jack
and Jane
, respectively. Can I do this?
I was hoping for something like this:
var builder = new ODataConventionModelBuilder { Namespace = "Blah" };
var foo = builder.EntitySet<Foo>("Foo");
foo.AliasProperty(f => f.Bar, "Jack");
foo.AliasProperty(f => f.Baz, "Jane");
So far I've been unable to find something that does this.