Updated the project.

This commit is contained in:
Batuhan Berk Başoğlu 2024-06-03 15:44:25 -04:00
parent 5dfe9f128d
commit 7919556077
1550 changed files with 17063 additions and 40183 deletions

13
Models/Context.cs Executable file
View 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!;
}

View file

@ -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; }

View file

@ -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!;
}