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

lucaslorentz / auto-compute / 11763467169

10 Nov 2024 08:07AM UTC coverage: 77.292% (-12.0%) from 89.255%
11763467169

push

github

lucaslorentz
Add initial support for computed navigations and observers

168 of 433 new or added lines in 25 files covered. (38.8%)

7 existing lines in 5 files now uncovered.

1467 of 1898 relevant lines covered (77.29%)

109.86 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