Updated the project.
This commit is contained in:
parent
5dfe9f128d
commit
7919556077
1550 changed files with 17063 additions and 40183 deletions
13
Models/Context.cs
Executable file
13
Models/Context.cs
Executable file
|
@ -0,0 +1,13 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Api.Models;
|
||||
|
||||
public class Context : DbContext
|
||||
{
|
||||
public Context(DbContextOptions<Context> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<Item> Items { get; set; } = null!;
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
namespace TodoApi.Models;
|
||||
namespace Api.Models;
|
||||
|
||||
public class TodoItem
|
||||
public class Item
|
||||
{
|
||||
public string? Author { get; set; }
|
||||
public string? AuthorId { get; set; }
|
|
@ -1,13 +0,0 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace TodoApi.Models;
|
||||
|
||||
public class TodoContext : DbContext
|
||||
{
|
||||
public TodoContext(DbContextOptions<TodoContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<TodoItem> TodoItems { get; set; } = null!;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue