diff --git a/SPToCore/Program.cs b/SPToCore/Program.cs index f49a775..58e636a 100644 --- a/SPToCore/Program.cs +++ b/SPToCore/Program.cs @@ -46,9 +46,9 @@ static async Task 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"); @@ -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) @@ -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)