forked from Alexey/DAS_2024_1
13 lines
292 B
C#
13 lines
292 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ApiRestaurant.Models;
|
|
|
|
public class RestaurantContext : DbContext
|
|
{
|
|
public RestaurantContext(DbContextOptions<RestaurantContext> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
public DbSet<Restaurant> Restaurants { get; set; } = null!;
|
|
} |