Skip to content

Commit

Permalink
remove useless code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jun 6, 2024
1 parent d26f5f0 commit ef9ff13
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions backend/LexCore/Entities/Organization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@ public class Organization : EntityBase
public required string Name { get; set; }
public required List<OrgMember> Members { get; set; }

// This doesn't seem to work:
[NotMapped]
[Projectable(UseMemberBody = nameof(SqlMemberCount))]
public int MemberCount { get; set; }
private static Expression<Func<Organization, int>> SqlMemberCount => org => org.Members.Count;

// We'll use this simpler method until we can debug the SqlMemberCount method
// [Projectable]
// public int MemberCount => Members.Count;
// Note that this will fail with a NullReferenceException if the GQL query doesn't include `members { at least one property }`
}

public class OrgMember : EntityBase
Expand Down

0 comments on commit ef9ff13

Please sign in to comment.