//----------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. // //----------------------------------------------------------------------- namespace Microsoft.Isam.Esent.Interop { /// /// Enumerate columns in a table specified by a tableid. /// internal sealed class TableidColumnInfoEnumerator : ColumnInfoEnumerator { /// /// The table to get the column information from. /// private readonly JET_TABLEID tableid; /// /// Initializes a new instance of the class. /// /// /// The session to use. /// /// /// The table to get column information from. /// public TableidColumnInfoEnumerator(JET_SESID sesid, JET_TABLEID tableid) : base(sesid) { this.tableid = tableid; } /// /// Open the table to be enumerated. This should set . /// protected override void OpenTable() { JET_COLUMNLIST columnlist; Api.JetGetTableColumnInfo(this.Sesid, this.tableid, string.Empty, out columnlist); this.Columnlist = columnlist; this.TableidToEnumerate = this.Columnlist.tableid; } } }