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

loresoft / EntityFrameworkCore.Generator / 15072048022

16 May 2025 03:31PM UTC coverage: 55.392% (-1.4%) from 56.772%
15072048022

push

github

pwelter34
enable nullable support

616 of 1271 branches covered (48.47%)

Branch coverage included in aggregate %.

233 of 397 new or added lines in 61 files covered. (58.69%)

17 existing lines in 11 files now uncovered.

1824 of 3134 relevant lines covered (58.2%)

88.56 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
    {
NEW
19
        ArgumentNullException.ThrowIfNull(entityContext);
×
20

UNCOV
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