Go to T4 template which generates entities (Something.tt), find line
<#=codeStringGenerator.EntityClassOpening(entity)#>
This line generates class opening string for each entity, e.g.
public class Foo
And replace it with
<#=codeStringGenerator.EntityClassOpening(entity)#> : IEntity
Now generate entity definitions will look like
public class Foo : IEntity
You will also probably need to add namespace using, if IEntity defined in different namespace (a little weird case I think).