Share via


RelationalTypeMappingSource.ParseStoreTypeName Method

Definition

Parses a provider-specific store type name, extracting the standard facets (e.g. size, precision) and returns the base store type name (without any facets).

protected virtual string ParseStoreTypeName (string storeTypeName, out bool? unicode, out int? size, out int? precision, out int? scale);
protected virtual string? ParseStoreTypeName (string? storeTypeName, out bool? unicode, out int? size, out int? precision, out int? scale);
protected virtual string? ParseStoreTypeName (string? storeTypeName, ref bool? unicode, ref int? size, ref int? precision, ref int? scale);
abstract member ParseStoreTypeName : string * Nullable * Nullable * Nullable * Nullable -> string
override this.ParseStoreTypeName : string * Nullable * Nullable * Nullable * Nullable -> string
Protected Overridable Function ParseStoreTypeName (storeTypeName As String, ByRef unicode As Nullable(Of Boolean), ByRef size As Nullable(Of Integer), ByRef precision As Nullable(Of Integer), ByRef scale As Nullable(Of Integer)) As String

Parameters

storeTypeName
String

A provider-specific relational type name, including facets.

unicode
Nullable<Boolean>

The Unicode or ANSI setting parsed from the type name, or null if none was specified.

size
Nullable<Int32>

The size parsed from the type name, or null if none was specified.

precision
Nullable<Int32>

The precision parsed from the type name, or null if none was specified.

scale
Nullable<Int32>

The scale parsed from the type name, or null if none was specified.

Returns

The provider-specific relational type name, with any facets removed.

Remarks

The default implementation supports sometype(size), sometype(precision) and sometype(precision, scale). Providers can override this to provide their own logic.

Applies to