Skip to content

IProviderDataTypeRegistry

Namespace: MJCZone.DapperMatic.Providers

Assembly: MJCZone.DapperMatic

Summary

Defines methods for retrieving available data types for a database provider.

abstract public

Note: This is an interface that defines a contract. Look for implementing classes in the same or related namespaces.

Contents

Methods (4)

Methods

GetAvailableDataTypes

Gets all available data types for the provider.

csharp
IEnumerable<DataTypeInfo> GetAvailableDataTypes(bool includeAdvanced)

Parameters

  • includeAdvanced (bool) - If true, includes advanced/specialized types; otherwise, only common types.

Returns

Type: IEnumerable<DataTypeInfo>

A collection of available data types.

GetDataTypeByName

Gets a specific data type by name.

csharp
DataTypeInfo? GetDataTypeByName(string typeName)

Parameters

  • typeName (string) - The name of the data type to retrieve.

Returns

Type: DataTypeInfo?

The data type information, or null if not found.

GetDataTypesForCategory

Gets all data types for a specific category.

csharp
IEnumerable&lt;DataTypeInfo&gt; GetDataTypesForCategory(DataTypeCategory category)

Parameters

Returns

Type: IEnumerable<DataTypeInfo>

A collection of data types in the specified category.

GetAvailableCategories

Gets the categories that have data types.

csharp
IEnumerable&lt;DataTypeCategory&gt; GetAvailableCategories()

Returns

Type: IEnumerable<DataTypeCategory>

A collection of categories that contain data types.