Table of Contents

Class NormalizationOptions

Namespace
LinqToDB.Naming
Assembly
linq2db.Tools.dll

Multi-word identifier normalization options.

public sealed class NormalizationOptions
Inheritance
NormalizationOptions
Extension Methods

Properties

Casing

Gets or sets name casing to apply.

public NameCasing Casing { get; set; }

Property Value

NameCasing

DontCaseAllCaps

Skip normalization (except Suffix and Prefix) if name contains only uppercase letters.

public bool DontCaseAllCaps { get; set; }

Property Value

bool

MaxUpperCaseWordLength

Don't case upper-case words if their length not longer than specified by MaxUpperCaseWordLength length. E.g. setting value to 2 will preserve 2-letter abbreviations like ID.

public int MaxUpperCaseWordLength { get; set; }

Property Value

int

Pluralization

Gets or sets name pluralization options, applied to last word in name.

public Pluralization Pluralization { get; set; }

Property Value

Pluralization

PluralizeOnlyIfLastWordIsText

Apply pluralization options Pluralization only if name ends with text.

public bool PluralizeOnlyIfLastWordIsText { get; set; }

Property Value

bool

Prefix

Gets or sets optional prefix to add to normalized name.

public string? Prefix { get; set; }

Property Value

string

Suffix

Gets or sets optional suffix to add to normalized name.

public string? Suffix { get; set; }

Property Value

string

Transformation

Gets or sets name transformation mode.

public NameTransformation Transformation { get; set; }

Property Value

NameTransformation

Methods

MergeInto(NormalizationOptions)

public NormalizationOptions MergeInto(NormalizationOptions baseOptions)

Parameters

baseOptions NormalizationOptions

Returns

NormalizationOptions