Closed
Description
It would be great if we could define an app-wide naming convention for attributes and relationships with default options. So, instead of:
[Attr("fooBar")]
public object FooBar { get; set; }
You would specify a convention:
// Startup.cs
options.AttributeNameConvention = NamingConvention.CamelCase;
// Model.cs
[Attr]
public object FooBar { get; set; }
A possible interface for AttributeNameConvention
might be:
public interface INamingConvention {
string Convert(string propertyName);
}