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

lucaslorentz / auto-compute / 11755625072

09 Nov 2024 10:48AM UTC coverage: 79.945% (-0.09%) from 80.033%
11755625072

push

github

lucaslorentz
Add initial support for computed navigations and observers

159 of 359 new or added lines in 22 files covered. (44.29%)

41 existing lines in 7 files now uncovered.

1459 of 1825 relevant lines covered (79.95%)

113.62 hits per line

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

85.71
/src/LLL.AutoCompute.EFCore/Metadata/Internal/Computed.cs
1
using LLL.AutoCompute.EFCore.Internal;
2
using Microsoft.EntityFrameworkCore;
3

4
namespace LLL.AutoCompute.EFCore.Metadata.Internal;
5

6
public abstract class Computed(IUnboundChangesProvider changesProvider)
6✔
7
{
8
    public abstract string ToDebugString();
9

NEW
10
    public IUnboundChangesProvider ChangesProvider => changesProvider;
×
11

12
    public IEnumerable<IEntityMember> GetDependencies()
13
    {
14
        return changesProvider.EntityContext.AllAccessedMembers;
19✔
15
    }
16

17
    public IEnumerable<Computed> GetComputedDependencies()
18
    {
19
        return GetDependencies()
19✔
20
            .OfType<EFCoreEntityMember>()
19✔
21
            .SelectMany(e => e.PropertyBase.GetComputeds() ?? [])
54✔
22
            .ToArray();
19✔
23
    }
24

25
    public abstract Task<int> Update(DbContext dbContext);
26
}
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

© 2026 Coveralls, Inc