Skip to content

Commit 362efa2

Browse files
committed
-Seed should not support ValueFromPipeline. Reorder params.
1 parent 059c077 commit 362efa2

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

PSql.Deploy/Commands/InvokeSqlSeedCommand.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,10 @@ public class InvokeSqlSeedCommand : AsyncPSCmdlet
3030
/// <b>-Seed:</b>
3131
/// Names of seeds to apply.
3232
/// </summary>
33-
[Parameter(Position = 1, Mandatory = true, ValueFromPipeline = true)]
33+
[Parameter(Position = 1, Mandatory = true)]
3434
[ValidateNotNullOrEmpty]
3535
public string[]? Seed { get; set; }
3636

37-
/// <summary>
38-
/// <b>-Define:</b>
39-
/// SQLCMD preprocessor variables to define.
40-
/// </summary>
41-
[Parameter]
42-
[ValidateNotNull]
43-
[AllowEmptyCollection]
44-
public Hashtable? Define { get; set; }
45-
4637
/// <summary>
4738
/// <b>-Path:</b>
4839
/// Path to a directory containing seeds.
@@ -52,6 +43,15 @@ public class InvokeSqlSeedCommand : AsyncPSCmdlet
5243
[ValidateNotNullOrEmpty]
5344
public string? Path { get; set; }
5445

46+
/// <summary>
47+
/// <b>-Define:</b>
48+
/// SQLCMD preprocessor variables to define.
49+
/// </summary>
50+
[Parameter]
51+
[ValidateNotNull]
52+
[AllowEmptyCollection]
53+
public Hashtable? Define { get; set; }
54+
5555
/// <summary>
5656
/// <b>-MaxErrorCount:</b>
5757
/// Maximum count of errors to allow. If the count of errors exceeds

0 commit comments

Comments
 (0)