Table of Contents

Class TypeUtilities

Namespace
DataStax.AstraDB.DataApi.Utils
Assembly
DataStax.AstraDB.DataApi.dll

Utility methods for mapping .NET types to Data API column type descriptors.

public class TypeUtilities
Inheritance
TypeUtilities
Inherited Members

Methods

GetDataAPIType(Type)

Returns the DataAPIType that corresponds to the given .NET type, unwrapping Nullable<T> if necessary.

public static DataAPIType GetDataAPIType(Type propertyType)

Parameters

propertyType Type

Returns

DataAPIType

GetDataAPITypeFromUnderlyingType(Type)

Returns the DataAPIType that corresponds to the given non-nullable .NET type.

public static DataAPIType GetDataAPITypeFromUnderlyingType(Type propertyType)

Parameters

propertyType Type

Returns

DataAPIType