Added the files.
This commit is contained in:
commit
1553e6b971
315 changed files with 56809 additions and 0 deletions
13
Models/TodoContext.cs
Executable file
13
Models/TodoContext.cs
Executable file
|
@ -0,0 +1,13 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace TodoApi.Models;
|
||||
|
||||
public class TodoContext : DbContext
|
||||
{
|
||||
public TodoContext(DbContextOptions<TodoContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<TodoItem> TodoItems { get; set; } = null!;
|
||||
}
|
12
Models/TodoItem.cs
Executable file
12
Models/TodoItem.cs
Executable file
|
@ -0,0 +1,12 @@
|
|||
namespace TodoApi.Models;
|
||||
|
||||
public class TodoItem
|
||||
{
|
||||
public string? Author { get; set; }
|
||||
public string? AuthorId { get; set; }
|
||||
public long Id { get; set; }
|
||||
public string? Likes { get; set; }
|
||||
public string? Popularity { get; set; }
|
||||
public string? Reads { get; set; }
|
||||
public string[]? Tags { get; set; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue