Introduce EF

This commit is contained in:
2023-10-17 01:18:17 +02:00
parent 8a2995302a
commit 489f0ee35a
5 changed files with 24 additions and 0 deletions

12
ApplicationContext.cs Normal file
View File

@@ -0,0 +1,12 @@
using GerbilManager.Models;
using Microsoft.EntityFrameworkCore;
public class ApplicationContext : DbContext
{
public ApplicationContext(DbContextOptions options)
:base(options)
{
}
public DbSet<Gerbil> Gerbils { get; set; }
}