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
How to insert data using a list in Dapper?
<p>To insert data using a list, you need to pass the list in a parameter instead of a single object to the <code>Execute</code> or <code>ExecuteAsync</code> method. However, inserting by providing a list doesn't perform a bulk insert. Instead, it simply iterates over every item to perform a single insert. See the <a href="#dapper-insert-multiple-rows">Inserting multiple rows</a> for an example.</p> <p>See the <a href="https://www.learndapper.com/bulk-operations/bulk-insert">Bulk Inserting</a> documentation if you want to insert the list in bulk.</p>
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
?