Advertisement
joaopaulofcc

Untitled

Nov 17th, 2021
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. using Microsoft.EntityFrameworkCore;
  2.  
  3. namespace MiniTodo.Data
  4. {
  5.     public class AppDbContext : DbContext
  6.     {
  7.         public DbSet<Todo> Todos { get; set; }
  8.  
  9.         protected override void OnConfiguring(DbContextOptionsBuilder options)
  10.             => options.UseSqlite("DataSource=app.db;Cache=Shared");
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement