AspNetCore.Docs.Samples/fundamentals/minimal-apis/samples/json-apis/Data/AppDbContext.cs

14 lines
341 B
C#
Raw Normal View History

2023-03-16 10:49:45 +08:00
using JSON.Models;
using Microsoft.EntityFrameworkCore;
namespace JSON.Data {
public class AppDbContext : DbContext {
public DbSet<WeatherForecast> Forecasts => Set<WeatherForecast>();
public AppDbContext(DbContextOptions<AppDbContext> optionsBuilder) : base(optionsBuilder)
{
}
}
}