Skip to content

Commit

Permalink
switch to readonly record struct as per the strongly typed IDs rule
Browse files Browse the repository at this point in the history
  • Loading branch information
william-liebenberg committed Aug 15, 2023
1 parent ced3e1b commit bb96344
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Domain/TodoItems/TodoItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

namespace SSW.CleanArchitecture.Domain.TodoItems;

public record TodoItemId(Guid Value);
// For strongly typed IDs, check out the rule: https://www.ssw.com.au/rules/do-you-use-strongly-typed-ids/
public readonly record struct TodoItemId(Guid Value);

public class TodoItem : BaseEntity<TodoItemId>
{
Expand Down

0 comments on commit bb96344

Please sign in to comment.