Interface INamingPolicy

Namespace
Cratis.Serialization
Assembly
Cratis.Fundamentals.dll

Defines the policy for naming, typically used during serialization.

public interface INamingPolicy
Extension Methods

Properties

JsonPropertyNamingPolicy

Gets the JSON property naming policy.

JsonNamingPolicy? JsonPropertyNamingPolicy { get; }

Property Value

JsonNamingPolicy

Methods

GetPropertyName(string)

Gets the property name based on the naming policy.

string GetPropertyName(string name)

Parameters

name string

The name to convert.

Returns

string

The converted name.

GetReadModelName(Type)

Gets the read model name based on the naming policy.

string GetReadModelName(Type readModelType)

Parameters

readModelType Type

The read model type to convert.

Returns

string

The converted name.