File tree Expand file tree Collapse file tree 10 files changed +17
-13
lines changed
Expand file tree Collapse file tree 10 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33using System . Data ;
4- using Microsoft . Data . SqlClient ;
54using System . Diagnostics ;
65using System . IO ;
76using System . Net . Sockets ;
87using System . Text ;
8+ using Microsoft . Data . SqlClient ;
9+ using SqlExcelExporter . Entities ;
910
1011namespace SqlExcelExporter
1112{
Original file line number Diff line number Diff line change 1- namespace SqlExcelExporter
1+ namespace SqlExcelExporter . Entities
22{
33 /// <summary>
44 /// Container for configuration settings from the config.json file
Original file line number Diff line number Diff line change 1- namespace SqlExcelExporter
1+ namespace SqlExcelExporter . Entities
22{
33 /// <summary>
44 /// Container for connection settings from the connection.json file
Original file line number Diff line number Diff line change 11using System ;
22using System . Data ;
33
4- namespace SqlExcelExporter
4+ namespace SqlExcelExporter . Entities
55{
66 /// <summary>
77 /// Container for results from one or more queries against SQL Server
Original file line number Diff line number Diff line change 11using System . Collections . Generic ;
22using System . IO ;
3+ using SqlExcelExporter . Entities ;
34
45namespace SqlExcelExporter
56{
Original file line number Diff line number Diff line change 55 <ReleaseVersion >0.2</ReleaseVersion >
66 </PropertyGroup >
77 <ItemGroup >
8- <PackageReference Include =" Microsoft.Data.SqlClient" Version =" 1.1.1" />
9- <PackageReference Include =" ClosedXML" Version =" 0.95.0-beta2" />
8+ <PackageReference Include =" Microsoft.Data.SqlClient" Version =" 2.0.0" />
9+ <PackageReference Include =" ClosedXML" Version =" 0.95.3" />
10+ </ItemGroup >
11+ <ItemGroup >
12+ <Folder Include =" Entities\" />
1013 </ItemGroup >
1114</Project >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public static T ReadJsonItem<T>(FileInfo file)
1616 {
1717 if ( ! File . Exists ( file . FullName ) )
1818 {
19- return default ( T ) ;
19+ return default ;
2020 }
2121
2222 return JsonSerializer . Deserialize < T > ( File . ReadAllText ( file . FullName ) ) ;
@@ -26,9 +26,6 @@ public static T ReadJsonItem<T>(FileInfo file)
2626 /// Checks if assembly is running on Windows
2727 /// </summary>
2828 /// <returns>True or false</returns>
29- public static bool IsWindows ( )
30- {
31- return Path . DirectorySeparatorChar . Equals ( '\\ ' ) ;
32- }
29+ public static bool IsWindows ( ) => Path . DirectorySeparatorChar . Equals ( '\\ ' ) ;
3330 }
3431}
Original file line number Diff line number Diff line change 44using System . Linq ;
55using System . Text ;
66using ClosedXML . Excel ;
7+ using SqlExcelExporter . Entities ;
78
89namespace SqlExcelExporter
910{
Original file line number Diff line number Diff line change 22using System . Collections . Generic ;
33using System . IO ;
44using SqlExcelExporter ;
5+ using SqlExcelExporter . Entities ;
56
67namespace SqlToExcelExporter
78{
@@ -12,7 +13,7 @@ class Program
1213
1314 private static void Main ( )
1415 {
15- Console . WriteLine ( "--- SQL to Excel Exporter v0.2.0 " ) ;
16+ Console . WriteLine ( "--- SQL to Excel Exporter v0.2.1 " ) ;
1617 Console . WriteLine ( "--- Copyright (c) Born SQL" ) ;
1718 Console . WriteLine ( "--- Written by Randolph West and other contributors. https://bornsql.ca/." ) ;
1819 Console . WriteLine ( ) ;
Original file line number Diff line number Diff line change 1- exec sp_Blitz
1+ exec sp_Blitz;
You can’t perform that action at this time.
0 commit comments