Uebungsaufgaben/Semester3/DotNET/Aufgabenblatt5/Aufgabe14/ApplicationDbContext.cs

16 lines
400 B
C#
Raw Permalink Normal View History

2024-12-19 22:55:07 +00:00
using Microsoft.EntityFrameworkCore;
namespace Aufgabe14;
public class ApplicationDbContext : DbContext
{
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlite($"Data Source=CustomerSample.db3");
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Customer>();
}
}