Skip to content

Commit 38db6fe

Browse files
committed
No need for preparedelete to return ITableMappedStatement.
1 parent 77e0f0c commit 38db6fe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

SQLitePCL.pretty.Orm/TableMapping.Delete.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ public static partial class TableMapping
1515
/// <param name="This">The database connection</param>
1616
/// <param name="tableMapping">The table mapping.</param>
1717
/// <typeparam name="T">The mapped type</typeparam>
18-
public static ITableMappedStatement<T> PrepareDeleteStatement<T>(this IDatabaseConnection This, ITableMapping<T> tableMapping)
18+
public static IStatement PrepareDeleteStatement<T>(this IDatabaseConnection This, ITableMapping<T> tableMapping)
1919
{
20-
return new TableMappedStatement<T>(
21-
This.PrepareDelete(tableMapping.TableName, tableMapping.PrimaryKeyColumn()),
22-
tableMapping);
20+
return This.PrepareDelete(tableMapping.TableName, tableMapping.PrimaryKeyColumn());
2321
}
2422

2523
private static IEnumerable<KeyValuePair<long,T>> YieldDeleteAll<T>(this IDatabaseConnection This, ITableMapping<T> tableMapping, IEnumerable<long> primaryKeys)

0 commit comments

Comments
 (0)