Skip to content

Commit 999abe6

Browse files
authored
Merge pull request #189 from cux/patch-3
set "DbContextInterfaceName" to null or empty
2 parents 18f9ea5 + 243476f commit 999abe6

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)