Bläddra i källkod

Final Commit

main
rpm-mcarman 2 år sedan
förälder
incheckning
d0bd55dc84
3 ändrade filer med 33 tillägg och 7 borttagningar
  1. +26
    -0
      .vscode/launch.json
  2. +6
    -6
      ArgHelper.cs
  3. +1
    -1
      Program.cs

+ 26
- 0
.vscode/launch.json Visa fil

@@ -0,0 +1,26 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/bin/Debug/net8.0/resequence_pgsql.dll",
"args": [
"-ip:192.168.0.108",
"-u:mcarman",
"-pwd:@ng31F@rm0823262",
"-lip:127.0.0.1",
"-p:5432",
"-db:accessdb_v3"
],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "internalConsole"
}
]
}

+ 6
- 6
ArgHelper.cs Visa fil

@@ -31,11 +31,11 @@ namespace resequence_pgsql
}
public class ArgSimple
{
public string ip { get; set; }
public string un { get; set; }
public string pwd { get; set; }
public string lip { get; set; }
public int port { get; set; }
public string db { get; set; }
public string ip { get; set; } = string.Empty;
public string un { get; set; } = string.Empty;
public string pwd { get; set; } = string.Empty;
public string lip { get; set; } = string.Empty;
public int? port { get; set; } = null;
public string db { get; set; } = string.Empty;
}
}

+ 1
- 1
Program.cs Visa fil

@@ -12,7 +12,7 @@ if (args.Length == 0)
else
{
ArgSimple arg = ArgHelper.GetArgs(args);
using (PGHelper pg = new PGHelper(arg.ip, arg.un, arg.pwd, arg.lip, arg.port, arg.db))
using (PGHelper pg = new PGHelper(arg.ip, arg.un, arg.pwd, arg.lip, Convert.ToInt32(arg.port), arg.db))
{
pg.ResequenceTables();
}


Laddar…
Avbryt
Spara