BEGIN_COLUMN_MAP

BEGIN_COLUMN_MAP( x )

Parameters

x

[in] The name of the user record class derived from CAccessor.

Remarks

Marks the beginning of a column map entry. This macro is used in the case of a single accessor on a rowset. If you have multiple accessors on a rowset, use BEGIN_ACCESSOR_MAP.

The BEGIN_COLUMN_MAP macro is completed with the END_COLUMN_MAP macro. This macro is used when there is only one accessor required in the user record.

Columns correspond to fields in the rowset you wish to bind.

Macros for OLE DB Consumer Templates

Example

Here is a sample column and parameter map:

class CArtists
{
public:
// Data Elements
   TCHAR m_szFirstName[20];
   TCHAR m_szLastName[30];
   short m_nAge;

// output binding map
BEGIN_COLUMN_MAP(CArtists)
   COLUMN_ENTRY(1, m_szFirstName)
   COLUMN_ENTRY(2, m_szLastName)
   COLUMN_ENTRY(3, m_nAge)
END_COLUMN_MAP()

// parameter binding map
BEGIN_PARAM_MAP(CArtists)
   COLUMN_ENTRY(1, m_nAge)
END_PARAM_MAP()
};

See Also

END_COLUMN_MAP, COLUMN_ENTRY, COLUMN_ENTRY_EX