Skip to main content
Table of Contents

Class FieldLengthConstants

Namespace
Stratara.EventSourcing.EntityFrameworkCore.Constants
Assembly
Stratara.EventSourcing.EntityFrameworkCore.dll

Shared maximum-length defaults applied by ApplyDefaultStringLengths to common string columns (Name, Description, Email, …) across all Stratara entity configurations.

[ExcludeFromCodeCoverage]
public static class FieldLengthConstants
Inheritance
FieldLengthConstants
Inherited Members

Fields

Code

Maximum length of a short machine-friendly code (e.g. country code).

public const int Code = 64

Field Value

int

Description

Maximum length of a free-text description.

public const int Description = 4000

Field Value

int

Email

Maximum length of an e-mail address (RFC 5321 upper bound).

public const int Email = 320

Field Value

int

Label

Maximum length of a UI label.

public const int Label = 255

Field Value

int

Name

Maximum length of a human display name.

public const int Name = 128

Field Value

int

Phone

Maximum length of a phone number including extension and formatting.

public const int Phone = 40

Field Value

int

Slug

Maximum length of a URL-safe slug.

public const int Slug = 64

Field Value

int

Url

Maximum length of a URL.

public const int Url = 2048

Field Value

int