/// <summary> /// Returns a <see cref="Record">Record</see> containing the names of all the primary /// key columns for a specified table. /// </summary> /// <param name="tableName">Specifies the name of the table from which to obtain /// primary key names.</param> /// <returns>Returns a <see cref="Record">Record</see> containing the names of all the /// primary key columns for a specified table.</returns> public Record PrimaryKeys(string tableName) { var error = MsiInterop.MsiDatabaseGetPrimaryKeys(this.Handle, tableName, out var recordHandle); if (error != 0) { throw new MsiException(error); } return(new Record(recordHandle)); }