Skip to content

Commit 98537ff

Browse files
authored
Merge pull request #369 from TimSirmovics/SettingsConfigFilePathNullReference
Do not print configuration file if it is blank. Thanks to Tim Sirmovics
2 parents 9b48126 + 06a2cab commit 98537ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EntityFramework.Reverse.POCO.Generator/EF.Reverse.POCO.Core.ttinclude

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@
543543
if (Settings.IncludeConnectionSettingComments)
544544
{
545545
WriteLine("// The following connection settings were used to generate this file:");
546-
if (!string.IsNullOrEmpty(Settings.ConnectionStringName))
546+
if (!string.IsNullOrEmpty(Settings.ConnectionStringName) && !string.IsNullOrEmpty(Settings.ConfigFilePath))
547547
{
548548
var solutionPath = Path.GetDirectoryName(GetSolution().FileName) + "\\";
549549
WriteLine("// Configuration file: \"{0}\"", Settings.ConfigFilePath.Replace(solutionPath, string.Empty));

0 commit comments

Comments
 (0)