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

lucaslorentz / auto-compute / 11750808709

08 Nov 2024 11:01PM UTC coverage: 81.803% (+0.4%) from 81.44%
11750808709

push

github

lucaslorentz
Add initial support for computed navigations and observers

151 of 309 new or added lines in 14 files covered. (48.87%)

12 existing lines in 5 files now uncovered.

1452 of 1775 relevant lines covered (81.8%)

116.37 hits per line

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

83.33
/src/LLL.AutoCompute.EFCore/Metadata/Internal/Computed.cs
1
using System.Linq.Expressions;
2
using LLL.AutoCompute.EFCore.Internal;
3
using Microsoft.EntityFrameworkCore;
4
using Microsoft.EntityFrameworkCore.Metadata;
5

6
namespace LLL.AutoCompute.EFCore.Metadata.Internal;
7

8
public abstract class Computed(LambdaExpression computedExpression)
6✔
9
{
10
    public abstract string ToDebugString();
11

12
    public abstract IEntityType EntityType { get; }
13

NEW
14
    public LambdaExpression ComputedExpression => computedExpression;
×
15

16
    public abstract IEnumerable<IEntityMember> GetDependencies();
17

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

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