12345678910111213141516171819202122232425 |
- using Microsoft.EntityFrameworkCore;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using WpfApp1.Models;
- namespace WpfApp1
- {
- public class ApplicationContext : DbContext
- {
- public DbSet<Role> Role { get; set; } = null!;
- public DbSet<Users> Users { get; set; } = null!;
- public DbSet<Clients> Clients { get; set; } = null!;
- public DbSet<OrderStatus> OrderStatus { get; set; } = null!;
- public DbSet<Orders> Orders { get; set; } = null!;
- protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
- {
- optionsBuilder.UseSqlite("Data Source=data.db");
- }
- }
- }
|