Skip to content

Commit a583475

Browse files
committed
Add a constructor overload to the Command class
1 parent c1acb45 commit a583475

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Sql/Command.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@ namespace Belin.Sql;
55
/// </summary>
66
/// <param name="Text">The text of the SQL statement.</param>
77
/// <param name="Parameters">The parameters of the SQL statement.</param>
8-
public sealed record Command(string Text, ParameterCollection Parameters);
8+
public sealed record Command(string Text, ParameterCollection Parameters) {
9+
10+
/// <summary>
11+
/// Creates a new command.
12+
/// </summary>
13+
/// <param name="text">The text of the SQL statement.</param>
14+
public Command(string text): this(text, []) {}
15+
}

0 commit comments

Comments
 (0)