DatabaseConnectionDeleteAllT Method |
Deleted all object instances specified by their primary keys.
Namespace: SQLitePCL.pretty.OrmAssembly: SQLitePCL.pretty.Orm (in SQLitePCL.pretty.Orm.dll) Version: 1.0.0.0 (1.0.0)
Syntax public static IReadOnlyDictionary<long, T> DeleteAll<T>(
this IDatabaseConnection This,
IEnumerable<long> primaryKeys,
Func<IReadOnlyList<IResultSetValue>, T> resultSelector
)
[<ExtensionAttribute>]
static member DeleteAll :
This : IDatabaseConnection *
primaryKeys : IEnumerable<int64> *
resultSelector : Func<IReadOnlyList<IResultSetValue>, 'T> -> IReadOnlyDictionary<int64, 'T>
Parameters
- This
- Type: SQLitePCL.prettyIDatabaseConnection
The database connection. - primaryKeys
- Type: System.Collections.GenericIEnumerableInt64
An IEnumerable of primary keys to delete. - resultSelector
- Type: SystemFuncIReadOnlyListIResultSetValue, T
A transform function to apply to each row.
Type Parameters
- T
- The mapped type.
Return Value
Type:
IReadOnlyDictionaryInt64,
TA dictionary mapping the primary key to its value if found in the database.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDatabaseConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also