18 lines
433 B
C#
18 lines
433 B
C#
|
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; }
|
||
|
|
||
|
protected override void OnConfiguring(DbContextOptionsBuilder options)
|
||
|
{
|
||
|
options.UseSqlite("DataSource=db.sqlite3");
|
||
|
}
|
||
|
}
|
||
|
|