Class CamelCaseNamingPolicy

Namespace
Cratis.Serialization
Assembly
Cratis.Fundamentals.dll

Camel case implementation of INamingPolicy.

public class CamelCaseNamingPolicy : NamingPolicy, INamingPolicy
Inheritance
CamelCaseNamingPolicy
Implements
Inherited Members
Extension Methods

Constructors

CamelCaseNamingPolicy(bool)

Camel case implementation of INamingPolicy.

public CamelCaseNamingPolicy(bool pluralizeReadModelNames = true)

Parameters

pluralizeReadModelNames bool

Whether to pluralize the read model names. Defaults to true.

Properties

JsonPropertyNamingPolicy

Gets the JSON property naming policy.

public override JsonNamingPolicy JsonPropertyNamingPolicy { get; }

Property Value

JsonNamingPolicy

Methods

GetPropertyNameImplementation(string)

Gets the property name from an existing name.

protected override string GetPropertyNameImplementation(string name)

Parameters

name string

The name of the property.

Returns

string

The desired name of the property.

GetReadModelNameImplementation(Type)

Gets the read model name for the specified type.

protected override string GetReadModelNameImplementation(Type readModelType)

Parameters

readModelType Type

The type of the read model.

Returns

string

The desired name of the read model.