-
-
Notifications
You must be signed in to change notification settings - Fork 159
Closed
Labels
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);
}
marijnz0r