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
Methods
GetPropertyName(string)
Gets the property name based on the naming policy.
string GetPropertyName(string name)
Parameters
namestringThe 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
readModelTypeTypeThe read model type to convert.
Returns
- string
The converted name.