remove record (#44)

pull/46/head
Rick Anderson 2022-09-12 12:48:20 -10:00 committed by GitHub
parent eb9bbe8b26
commit 2b73a19515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -10,7 +10,6 @@ class TodoDb : DbContext
public DbSet<Todo> Todos => Set<Todo>();
}
// <snippet_1>
// <snippet>
struct TodoItemRequest
{
@ -18,10 +17,18 @@ struct TodoItemRequest
public TodoDb Db { get; set; }
}
// </snippet>
// <snippet_1>
class CreateTodoItemRequest
{
public TodoItemDTO Dto { get; set; } = default!;
public TodoDb Db { get; set; } = default!;
}
record EditTodoItemRequest(int Id, TodoItemDTO Dto, TodoDb Db);
class EditTodoItemRequest
{
public int Id { get; set; }
public TodoItemDTO Dto { get; set; } = default!;
public TodoDb Db { get; set; } = default!;
}
// </snippet_1>