Skip to content

Attribute Naming Conventions #293

Closed
Closed
@jaredcnance

Description

@jaredcnance

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);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions