ZZZ Code AI
Report Issues
Suggest Features
Login
Dapper Tools
Chat
Code Explain
Seed Data Generator
Sql Generator
Stored Procedure Generator
Entity to Table Converter
Table to Entity Converter
Sql Injection Detector
More Tools
What does the buffered parameter for the Query and QueryAsync methods in Dapper?
<p>The <a href="https://www.learndapper.com/misc/buffered-unbuffered">buffered parameter</a> in Dapper for the <code>Query</code> and <code>QueryAsync</code> methods controls whether the results of a query are loaded into memory all at once (buffered) or streamed one by one (unbuffered). If set to <code>true</code> (the default), all the data from the query is loaded into memory immediately. If set to <code>false</code>, each row is loaded and processed one at a time, saving memory but potentially increasing execution time.</p> <pre><code class="language-csharp">// Query result will be streamed one by one when `buffered = false` var customers = connection.Query<Customer>(sql, buffered: false); </code></pre>
Sponsored by
Dapper Plus
This field is required
A text with a minimum of 10 characters is required
Send
Legal & Licensing
Answer generated by AI may produce inaccurate information about code, people, facts, and more.
Advertising Break!
5
seconds left
Did you know...
That you can now sponsor this project on
GitHub
?