slik-dispenser/backend/DispenserContext.cs

19 lines
473 B
C#
Raw Permalink Normal View History

2023-12-05 22:43:02 +00:00
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using backend.Models;
public class DispenserContext : DbContext
{
public DbSet<DispenserLog> DispenserLogs { get; set; }
2023-12-06 13:11:11 +00:00
public DbSet<User> Users { get; set; }
2023-12-05 22:43:02 +00:00
protected override void OnConfiguring(DbContextOptionsBuilder options)
{
options.UseSqlite("DataSource=db.sqlite3");
}
}