Skip to content

Commit 243476f

Browse files
authored
set "DbContextInterfaceName" to null or empty
set "DbContextInterfaceName" to null or empty
1 parent 1bb39d6 commit 243476f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ foreach(var usingStatement in usingsContext.Distinct().OrderBy(x => x)) { #>
209209
<# } #>
210210
<#if(IncludeCodeGeneratedAttribute){#> <#=CodeGeneratedAttribute#>
211211
<#}#>
212-
public <# if(MakeClassesPartial) { #>partial <# } #>class <#=DbContextName#> : <#=DbContextBaseClass#>, <#=DbContextInterfaceName#>
212+
public <# if(MakeClassesPartial) { #>partial <# } #>class <#=DbContextName#> : <#=DbContextBaseClass#><#= (string.IsNullOrEmpty (DbContextInterfaceName)?"": ", " + DbContextInterfaceName)#>
213213
{
214214
<#
215215
foreach(Table tbl in from t in tables.Where(t => !t.IsMapping && t.HasPrimaryKey).OrderBy(x => x.NameHumanCase) select t)
@@ -504,7 +504,7 @@ foreach(var usingStatement in usingsContext.Distinct().OrderBy(x => x)) { #>
504504
<# } #>
505505
<#if(IncludeCodeGeneratedAttribute){#> <#=CodeGeneratedAttribute#>
506506
<#}#>
507-
public <# if(MakeClassesPartial) { #>partial <# } #>class Fake<#=DbContextName #> : <#=DbContextInterfaceName #>
507+
public <# if(MakeClassesPartial) { #>partial <# } #>class Fake<#=DbContextName #><#= (string.IsNullOrEmpty (DbContextInterfaceName)? "" : " : " + DbContextInterfaceName)#>
508508
{
509509
<#
510510
foreach (Table tbl in from t in tables.Where(t => !t.IsMapping && t.HasPrimaryKey).OrderBy(x => x.NameHumanCase) select t)

0 commit comments

Comments
 (0)