Complete Rebuild of Project from HelloWorld to Blazer WebApp
This commit is contained in:
8
Data/AppDbContext.cs
Normal file
8
Data/AppDbContext.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace SecDevOpsLab.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SecDevOpsLab.Models;
|
||||
|
||||
public class AppDbContext : DbContext {
|
||||
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
|
||||
public DbSet<Book> Books => Set<Book>();
|
||||
}
|
||||
Reference in New Issue
Block a user