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

loresoft / EntityFrameworkCore.Generator / 9036122521

10 May 2024 05:55PM UTC coverage: 57.012% (+2.3%) from 54.745%
9036122521

push

github

pwelter34
update packages

563 of 1111 branches covered (50.68%)

Branch coverage included in aggregate %.

1811 of 3053 relevant lines covered (59.32%)

83.77 hits per line

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

89.47
/src/EntityFrameworkCore.Generator.Core/Metadata/Generation/Relationship.cs
1
using System.Diagnostics;
2

3
namespace EntityFrameworkCore.Generator.Metadata.Generation;
4

5
[DebuggerDisplay("Primary: {PrimaryEntity}, Property: {PropertyName}, Relationship: {RelationshipName}")]
6
public class Relationship : ModelBase
7
{
8
    public Relationship()
42✔
9
    {
10
        Properties = new PropertyCollection();
42✔
11
        PrimaryProperties = new PropertyCollection();
42✔
12
    }
42✔
13

14
    public string RelationshipName { get; set; }
152✔
15

16

17
    public Entity Entity { get; set; }
42✔
18

19
    public PropertyCollection Properties { get; set; }
147✔
20

21
    public string PropertyName { get; set; }
249✔
22

23
    public Cardinality Cardinality { get; set; }
189✔
24

25

26
    public Entity PrimaryEntity { get; set; }
174✔
27

28
    public PropertyCollection PrimaryProperties { get; set; }
105✔
29

30
    public string PrimaryPropertyName { get; set; }
87✔
31

32
    public Cardinality PrimaryCardinality { get; set; }
84✔
33

34

35
    public bool? CascadeDelete { get; set; }
×
36
    public bool IsForeignKey { get; set; }
66✔
37
    public bool IsMapped { get; set; }
84✔
38

39
    public bool IsOneToOne => Cardinality != Cardinality.Many && PrimaryCardinality != Cardinality.Many;
21!
40
}
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