Created
March 15, 2021 19:24
-
-
Save dkreider/bb1f056e5932d53b820edd47555948d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using GenericRepositoryDemo.Entities; | |
using Microsoft.EntityFrameworkCore; | |
namespace GenericRepositoryDemo | |
{ | |
public class BloggingContext : DbContext | |
{ | |
public DbSet<Blog> Blogs { get; set; } | |
public DbSet<Post> Posts { get; set; } | |
protected override void OnConfiguring(DbContextOptionsBuilder options) | |
=> options.UseSqlite("Data Source=blogging.db"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment