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

lucaslorentz / auto-compute / 13087746143

01 Feb 2025 10:27AM UTC coverage: 83.524% (+0.3%) from 83.178%
13087746143

push

github

lucaslorentz
Split DbContext update computeds from notify observers

64 of 68 new or added lines in 9 files covered. (94.12%)

3 existing lines in 2 files now uncovered.

1825 of 2185 relevant lines covered (83.52%)

428.51 hits per line

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

75.0
/src/LLL.AutoCompute.EFCore/Internal/EFCoreObservedMember.cs
1
using System.Linq.Expressions;
2
using LLL.AutoCompute.EFCore.Metadata.Internal;
3
using Microsoft.EntityFrameworkCore;
4
using Microsoft.EntityFrameworkCore.ChangeTracking;
5
using Microsoft.EntityFrameworkCore.Metadata;
6

7
namespace LLL.AutoCompute.EFCore.Internal;
8

9
public abstract class EFCoreObservedMember : IObservedMember<IEFCoreComputedInput>
10
{
11
    private readonly HashSet<ComputedMember> _dependentMembers = [];
110✔
12

13
    public abstract IPropertyBase Property { get; }
UNCOV
14
    public Type InputType => typeof(IEFCoreComputedInput);
×
15

16
    internal IReadOnlySet<ComputedMember> DependentMembers => _dependentMembers;
332✔
17
    internal bool AddDependentMember(ComputedMember computed)
18
    {
19
        return _dependentMembers.Add(computed);
129✔
20
    }
21

22
    public abstract string Name { get; }
23
    public abstract string ToDebugString();
24
    public abstract Expression CreateCurrentValueExpression(IObservedMemberAccess memberAccess, Expression inputExpression);
25
    public abstract Expression CreateIncrementalCurrentValueExpression(IObservedMemberAccess memberAccess, Expression inputExpression, Expression incrementalContextExpression);
26
    public abstract Expression CreateIncrementalOriginalValueExpression(IObservedMemberAccess memberAccess, Expression inputExpression, Expression incrementalContextExpression);
27
    public abstract Expression CreateOriginalValueExpression(IObservedMemberAccess memberAccess, Expression inputExpression);
28
    public abstract Task CollectChangesAsync(DbContext dbContext, EFCoreChangeset changes);
29
    public abstract Task CollectChangesAsync(EntityEntry entityEntry, EFCoreChangeset changes);
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

© 2026 Coveralls, Inc