Skip to content

Commit 51c2876

Browse files
committed
Make SQLiteCommands inheritable
Fixes #718
1 parent 3cff559 commit 51c2876

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/SQLite.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,7 +2600,7 @@ public partial class SQLiteCommand
26002600

26012601
public string CommandText { get; set; }
26022602

2603-
internal SQLiteCommand (SQLiteConnection conn)
2603+
public SQLiteCommand (SQLiteConnection conn)
26042604
{
26052605
_conn = conn;
26062606
_bindings = new List<Binding> ();
@@ -2658,8 +2658,6 @@ public List<T> ExecuteQuery<T> (TableMapping map)
26582658
/// <remarks>
26592659
/// This can be overridden in combination with the <see cref="SQLiteConnection.NewCommand"/>
26602660
/// method to hook into the life-cycle of objects.
2661-
///
2662-
/// Type safety is not possible because MonoTouch does not support virtual generic methods.
26632661
/// </remarks>
26642662
protected virtual void OnInstanceCreated (object obj)
26652663
{
@@ -2780,7 +2778,7 @@ void BindAll (Sqlite3Statement stmt)
27802778
}
27812779
}
27822780

2783-
internal static IntPtr NegativePointer = new IntPtr (-1);
2781+
static IntPtr NegativePointer = new IntPtr (-1);
27842782

27852783
const string DateTimeExactStoreFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fff";
27862784

0 commit comments

Comments
 (0)