Skip to main content

DBColumn.GetColumnType(Type, Boolean) Method

Gets the column type of the specified runtime type.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

public static DBColumnType GetColumnType(
    Type type,
    bool suppressExceptionOnUnknown
)

Parameters

Name Type Description
type Type

A Type object that represents the exact runtime type.

suppressExceptionOnUnknown Boolean

true to return the DBColumnType.Unknown value if the specified type cannot be identified; false to raise the PropertyTypeMappingMissingException exception.

Returns

Type Description
DBColumnType

A DevExpress.Xpo.DB.DBColumnType enumeration value that corresponds to the specified runtime type.

See Also