# BorrowedRowEnumerable<T>

A synchronous factory-mapped sequence whose models may borrow the current reader's fields.

Struct 

`OfficeIMO.Data`

**Namespace**

`OfficeIMO.Data`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[RowMapping.Borrowed.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Core/Data/RowMapping.Borrowed.cs#L55)

**Base**

`ValueType`

**Modifiers**

sealed

**Attributes**

`Obsolete("Types with embedded references are not supported in this version of your compiler.", true)`

A synchronous factory-mapped sequence whose models may borrow the current reader's fields.

## Inheritance

- ValueType
- BorrowedRowEnumerable<T>

## Remarks

Enumerates remaining unread rows without taking ownership of the reader. Models and field spans must be consumed before the next reader advance, result change, close, or disposal. This pattern enumerable does not expose an interface or a materialization API.

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Method [DataReaderMappingExtensions.RowsAsBorrowed``1](/api/core/officeimo-data-datareadermappingextensions/#method-rowsasborrowed-data-common-dbdatareader-func-system-data-idatarecord-threading-cancellationtoken)

## Type Parameters

**T**

The mapped model, including a ref struct.

Filter members 

Show inherited

## Methods

`public Enumerator<T> GetEnumerator()` [#](#method-getenumerator)

[RowMapping.Borrowed.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Core/Data/RowMapping.Borrowed.cs#L55)

Creates an enumerator over the reader's remaining unread rows.

Returns

`Enumerator<T>`

## Inherited Methods

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from ValueType

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from ValueType

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public override string? ToString()` [#](#method-tostring)

Inherited from ValueType

Returns

`string?`

<!-- PowerForge markdown artifact sha256:A348E8CC83FE72EAB2CC754A2FDC08997438ECB20F8332BFFFEE3E121E4D84A7 -->
