• 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/ModelScriptTemplate.cs
1
using EntityFrameworkCore.Generator.Metadata.Generation;
2
using EntityFrameworkCore.Generator.Options;
3
using Microsoft.Extensions.Logging;
4

5
namespace EntityFrameworkCore.Generator.Scripts;
6

7
public class ModelScriptTemplate : ScriptTemplateBase<ModelScriptVariables>
8
{
9
    private Model _model = null!;
10

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

16
    public void RunScript(Model model)
17
    {
NEW
18
        ArgumentNullException.ThrowIfNull(model);
×
19

UNCOV
20
        _model = model;
×
21

22
        WriteCode();
×
23
    }
×
24

25
    protected override ModelScriptVariables CreateVariables()
26
    {
27
        return new ModelScriptVariables(_model, GeneratorOptions, TemplateOptions);
×
28
    }
29
}
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