Skip to content

Commit

Permalink
Added interface creation to repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
danemorgridge committed Nov 16, 2011
1 parent 4bf3e71 commit cb41ad5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion DbContext Templates/IRepository.tt
Expand Up @@ -49,7 +49,12 @@ using System.Collections.Generic;

namespace <#= code.VsNamespaceSuggestion() #>
{
<#=Accessibility.ForType(entity)#> <#=code.SpaceAfter(code.AbstractOption(entity))#>partial class <#=code.Escape(entity)#>Repository : EFRepository<<#=code.Escape(entity)#>>
<#=Accessibility.ForType(entity)#> <#=code.SpaceAfter(code.AbstractOption(entity))#> class <#=code.Escape(entity)#>Repository : EFRepository<<#=code.Escape(entity)#>>, I<#=code.Escape(entity)#>Repository
{

}

<#=Accessibility.ForType(entity)#> <#=code.SpaceAfter(code.AbstractOption(entity))#> interface I<#=code.Escape(entity)#>Repository : IRepository<<#=code.Escape(entity)#>>
{

}
Expand Down

0 comments on commit cb41ad5

Please sign in to comment.