Skip to content

SqlTypeDescriptor

Namespace: MJCZone.DapperMatic

Assembly: MJCZone.DapperMatic

Summary

A descriptor for a SQL type that breaks up the SQL type name into its useful parts, including the base type name, the complete SQL type name, and the numbers extracted from the SQL type name.

public

Contents

Constructors (1) | Methods (4) | Properties (8)

Constructors

SqlTypeDescriptor

Initializes a new instance of the SqlTypeDescriptor class.

csharp
SqlTypeDescriptor(string sqlTypeName)

Parameters

  • sqlTypeName (string) - The complete SQL type name.

Methods

ToString

Returns a string that represents the current object.

csharp
string ToString()

Returns

Type: string

A string that represents the current object.

GetType

csharp
GetType()

Equals

csharp
Equals()

GetHashCode

csharp
GetHashCode()

Properties

BaseTypeName

Gets or sets the base type name of the SQL type.

Type: string

SqlTypeName

Gets or sets the complete SQL type name with length, precision and/or scale.

Type: string

Length

Gets or sets the length of the SQL type.

Type: int?

Precision

Gets or sets the precision of the SQL type.

Type: int?

Scale

Gets or sets the scale of the SQL type.

Type: int?

IsAutoIncrementing

Gets or sets a value indicating whether the SQL type is auto-incrementing.

Type: bool?

IsUnicode

Gets or sets a value indicating whether the SQL type is Unicode.

Type: bool?

IsFixedLength

Gets or sets a value indicating whether the SQL type has a fixed length.

Type: bool?