Partager via


Macros pour les modèles du fournisseur OLE DB

The OLE DB Templates Provider macros offer functionality in the following categories:

Property Set Map Macros

BEGIN_PROPERTY_SET

Marks the beginning of a property set.

BEGIN_PROPERTY_SET_EX

Marks the beginning of a property set.

BEGIN_PROPSET_MAP

Marks the beginning of a property set that can be hidden or defined outside the scope of the provider.

CHAIN_PROPERTY_SET

Chains property groups together.

END_PROPERTY_SET

Marks the end of a property set.

END_PROPSET_MAP

Marks the end of a property set map.

PROPERTY_INFO_ENTRY

Sets a specific property in a property set to a default value.

PROPERTY_INFO_ENTRY_EX

Sets a specific property in a property set to a value supplied by you. Also enables you to set flags and options.

PROPERTY_INFO_ENTRY_VALUE

Sets a specific property in a property set to a value supplied by you.

Column Map Macros

BEGIN_PROVIDER_COLUMN_MAP

Marks the beginning of the provider column map entries.

END_PROVIDER_COLUMN_MAP

Marks the end of the provider column map entries.

PROVIDER_COLUMN_ENTRY

Represents a specific column supported by the provider.

PROVIDER_COLUMN_ENTRY_GN

Represents a specific column supported by the provider. You can specify the column's size, data type, precision, scale, and schema rowset GUID.

PROVIDER_COLUMN_ENTRY_FIXED

Represents a specific column supported by the provider. You can specify the column data type.

PROVIDER_COLUMN_ENTRY_LENGTH

Represents a specific column supported by the provider. You can specify the column size.

PROVIDER_COLUMN_ENTRY_STR

Represents a specific column supported by the provider. It assumes the column type is a string.

PROVIDER_COLUMN_ENTRY_TYPE_LENGTH

Represents a specific column supported by the provider. Like PROVIDER_COLUMN_ENTRY_LENGTH, but also allows you to specify the column's data type as well as size.

PROVIDER_COLUMN_ENTRY_WSTR

Represents a specific column supported by the provider. It assumes the column type is a Unicode character string.

Schema Rowset Macros

BEGIN_SCHEMA_MAP

Marks the beginning of a schema map.

SCHEMA_ENTRY

Associates a GUID with a class.

END_SCHEMA_MAP

Marks the end of a schema map.

Voir aussi

Référence

Création d'un fournisseur OLE DB

Concepts

Modèles du fournisseur OLE DB (C++)

Architecture des modèles du fournisseur OLE DB

Référence des modèles de fournisseur OLE DB