Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/SQLiteAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,13 @@ Task<TableMapping> GetMappingAsync<
[RequiresUnreferencedCode ("This method requires ''DynamicallyAccessedMemberTypes.All' on the runtime type of all objects in 'objects'.")]
#endif
Task<int> InsertAllAsync (IEnumerable objects, string extra, bool runInTransaction = true);

Task<int> InsertAllAsync (IEnumerable objects,
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode ("This method requires ''DynamicallyAccessedMemberTypes.All' on the runtime type of all objects in 'objects'.")]
[DynamicallyAccessedMembers (DynamicallyAccessedMemberTypes.All)]
#endif
Task<int> InsertAllAsync (IEnumerable objects, Type objType, bool runInTransaction = true);
Type objType,
bool runInTransaction = true);
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode ("This method requires ''DynamicallyAccessedMemberTypes.All' on the runtime type of 'obj'.")]
#endif
Expand Down Expand Up @@ -1424,10 +1427,13 @@ public Task<int> InsertAllAsync (IEnumerable objects, string extra, bool runInTr
/// <returns>
/// The number of rows added to the table.
/// </returns>
public Task<int> InsertAllAsync (
IEnumerable objects,
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode ("This method requires ''DynamicallyAccessedMemberTypes.All' on the runtime type of all objects in 'objects'.")]
[DynamicallyAccessedMembers (DynamicallyAccessedMemberTypes.All)]
#endif
public Task<int> InsertAllAsync (IEnumerable objects, Type objType, bool runInTransaction = true)
Type objType,
bool runInTransaction = true)
{
return WriteAsync (conn => conn.InsertAll (objects, objType, runInTransaction));
}
Expand Down