Skip to content

Commit 9b48126

Browse files
committed
#307 Add partial to IDbContextFactory if required. Thanks to StevenBonePgh.
1 parent 0694154 commit 9b48126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ if(Settings.ElementsToGenerate.HasFlag(Elements.Context) && !Settings.GenerateSe
493493
#region Database context factory
494494

495495
<# } #>
496-
<# if(Settings.MakeClassesInternal) { #>internal<# } else { #>public<# } #> class <#= Settings.DbContextName + "Factory" #> : System.Data.Entity.Infrastructure.IDbContextFactory<<#= Settings.DbContextName #>>
496+
<# if(Settings.MakeClassesInternal) { #>internal<# } else { #>public<# } #> <# if(Settings.MakeClassesPartial) { #>partial <# } #>class <#= Settings.DbContextName + "Factory" #> : System.Data.Entity.Infrastructure.IDbContextFactory<<#= Settings.DbContextName #>>
497497
{
498498
public <#= Settings.DbContextName #> Create()
499499
{

0 commit comments

Comments
 (0)