Comments
Sort by recent activity
I was unable to find a way to programmatically increment the seed at runtime. My solution to the problem was a bit awkward but it works... I wrote a quick powershell script to increment every Seed in the .sqlgen file ahead of having Sql Data Generator process it via command line... param(
[Parameter(Mandatory=$true)][string]$filePath
)
$xml = [xml](Get-Content $filePath)
foreach ( $SDGTable in $xml.Project.Tables.ChildNodes ) {
foreach ( $SDGField in $SDGTable.Fields.ChildNodes ) {
foreach ( $element in $SDGField.Generator.GeneratorProperties.ChildNodes ) {
if ( $element.ChildNodes[0].ChildNodes[0].Value -eq "Seed" ) {
$element.ChildNodes[1].ChildNodes[0].Value = [int]$element.ChildNodes[1].ChildNodes[0].Value + 1
}
}
}
}
$xml.Save($filePath) / comments
I was unable to find a way to programmatically increment the seed at runtime. My solution to the problem was a bit awkward but it works... I wrote a quick powershell script to increment every Seed ...