• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

loresoft / EntityFrameworkCore.Generator / 15460811637

05 Jun 2025 07:12AM CUT coverage: 54.917%. Remained the same
15460811637

Pull #669

github

web-flow
Merge 7e40b6960 into b2ad58745
Pull Request #669: Bump the azure group with 3 updates

643 of 1333 branches covered (48.24%)

Branch coverage included in aggregate %.

1881 of 3263 relevant lines covered (57.65%)

61.27 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/EntityFrameworkCore.Generator.Core/Scripts/ContextScriptTemplate.cs
1
using EntityFrameworkCore.Generator.Metadata.Generation;
2
using EntityFrameworkCore.Generator.Options;
3

4
using Microsoft.Extensions.Logging;
5

6
namespace EntityFrameworkCore.Generator.Scripts;
7

8
public class ContextScriptTemplate : ScriptTemplateBase<ContextScriptVariables>
9
{
10
    private EntityContext _entityContext = null!;
11

12
    public ContextScriptTemplate(ILoggerFactory loggerFactory, GeneratorOptions generatorOptions, TemplateOptions templateOptions)
13
        : base(loggerFactory, generatorOptions, templateOptions)
×
14
    {
15
    }
×
16

17
    public void RunScript(EntityContext entityContext)
18
    {
19
        ArgumentNullException.ThrowIfNull(entityContext);
×
20

21
        _entityContext = entityContext;
×
22

23
        WriteCode();
×
24
    }
×
25

26
    protected override ContextScriptVariables CreateVariables()
27
    {
28
        return new ContextScriptVariables(_entityContext, GeneratorOptions, TemplateOptions);
×
29
    }
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc