title: C++/CLI Managed Wrapper and ADODB::Recordset
body: <p>I have a native C++ DLL that uses COM ADO Recordsets and am in need of converting it to the .NET variant (ADODB::Recordset).  I have tried several approaches to tackling this problem without success.
  The native C++ DLL dynamically creates and populates the COM Recordset.  Ideally I'd do the same for the ADODB::Recordset within the managed wrapper, but the needed properties aren't accessible to me.
  For example, when attempting to utilize the Fields collection in order to Append Columns (despite intellisense telling me otherwise), I receive:</p>
  
  <p>error C2039: 'Fields' : is not a member of 'ADODB::Recordset'</p>
  
  <pre><code>ADODB::Recordset ^RS = gcnew ADODB::Recordset ();
  RS-&gt;Fields-&gt;Append("ID", DataTypeEnum::adInteger, 1, FieldAttributeEnum::adFldKeyColumn);
  </code></pre>
  
  <p>My C++/CLI solution contains the ADODB reference (c:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll) version 7.0.3300.0
  I am using Visual Studio 2005 with .NET Framework 2.0.50727 SP2</p>
  
  <p>I would appreaciate it if someone in the StackOverflow community can direct me to a sample that dynamically populates a .NET ADO Recordset using C++/CLI.</p>