Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions SPToCore/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ static async Task<int> Main(string[] args)

public static void SPToCoreScan() {

var dt_SpList = new DataTable();
var dt_SpParam = new DataTable();
var dt_SpResult = new DataTable();
DataTable dt_SpList;
DataTable dt_SpParam;
DataTable dt_SpResult;

Console.WriteLine($"{DateTime.Now.ToString("yyyy-MM-dd HH':'mm':'ss")} STEP 1 - GET STORED PROCEDURE LIST");

Expand Down Expand Up @@ -300,8 +300,6 @@ private static string SP_GetType(string type,bool isNullable)
return "int" + (isNullable ? "?" : "");
else if (type == "tinyint")
return "Byte" + (isNullable ? "?" : "");
else if (type == "bigint")
return "Int64" + (isNullable ? "?" : "");
else if (type.IndexOf("decimal") > -1)
return "decimal" + (isNullable ? "?" : "");
else if (type.IndexOf("nvarchar") > -1)
Expand Down Expand Up @@ -344,8 +342,6 @@ private static string SP_GetDbType(string type)
return "Int16";
else if (type == "tinyint")
return "Byte";
else if (type == "bigint")
return "Int64";
else if (type.IndexOf("decimal") > -1)
return "Decimal";
else if (type.IndexOf("nvarchar") > -1)
Expand Down