Skip to content

Commit

Permalink
fix: assign null to prop, empty ctor is used by ef
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaDmitrasinovic committed Jan 24, 2024
1 parent 41f76db commit 02fdb94
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ protected Quota(string applyTo)
ApplyTo = applyTo;
}

public QuotaId? Id { get; }
public string? ApplyTo { get; }
public QuotaId Id { get; } = null!;
public string ApplyTo { get; } = null!;
public abstract int Weight { get; }
public abstract MetricKey MetricKey { get; }
public abstract int Max { get; }
Expand Down

0 comments on commit 02fdb94

Please sign in to comment.