Skip to content

Commit 9a66dc7

Browse files
committed
Fix formatting
1 parent 3584a6d commit 9a66dc7

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

src/SQLite.cs

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -872,31 +872,31 @@ public SQLiteCommand CreateCommand (string cmdText, params object[] ps)
872872
}
873873

874874
/// <summary>
875-
/// Creates a new SQLiteCommand given the command text with arguments. Place a "[@:]VVV"
876-
/// in the command text for each of the arguments.
877-
/// </summary>
878-
/// <param name="cmdText">
879-
/// The fully escaped SQL.
880-
/// </param>
881-
/// <param name="args">
882-
/// Arguments to substitute for the occurences of "[@:]VVV" in the command text.
883-
/// </param>
884-
/// <returns>
885-
/// A <see cref="SQLiteCommand" />
886-
/// </returns>
887-
public SQLiteCommand CreateCommand(string cmdText, Dictionary<string, object> args)
888-
{
889-
if (!this._open)
890-
throw SQLiteException.New(SQLite3.Result.Error, "Cannot create commands from unopened database");
891-
892-
SQLiteCommand cmd = NewCommand();
893-
cmd.CommandText = cmdText;
894-
foreach (var kv in args)
895-
{
896-
cmd.Bind(kv.Key, kv.Value);
897-
}
898-
return cmd;
899-
}
875+
/// Creates a new SQLiteCommand given the command text with named arguments. Place a "[@:$]VVV"
876+
/// in the command text for each of the arguments. VVV represents an alphanumeric identifier.
877+
/// For example, @name :name and $name can all be used in the query.
878+
/// </summary>
879+
/// <param name="cmdText">
880+
/// The fully escaped SQL.
881+
/// </param>
882+
/// <param name="args">
883+
/// Arguments to substitute for the occurences of "[@:$]VVV" in the command text.
884+
/// </param>
885+
/// <returns>
886+
/// A <see cref="SQLiteCommand" />
887+
/// </returns>
888+
public SQLiteCommand CreateCommand (string cmdText, Dictionary<string, object> args)
889+
{
890+
if (!_open)
891+
throw SQLiteException.New (SQLite3.Result.Error, "Cannot create commands from unopened database");
892+
893+
SQLiteCommand cmd = NewCommand ();
894+
cmd.CommandText = cmdText;
895+
foreach (var kv in args) {
896+
cmd.Bind (kv.Key, kv.Value);
897+
}
898+
return cmd;
899+
}
900900

901901
/// <summary>
902902
/// Creates a SQLiteCommand given the command text (SQL) with arguments. Place a '?'

0 commit comments

Comments
 (0)