16 lines
400 B
C#
16 lines
400 B
C#
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>();
|
|
}
|
|
} |