21 lines
478 B
C#
21 lines
478 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using api.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace api.Data
|
|
{
|
|
public class ApplicationDbContext : DbContext
|
|
{
|
|
public ApplicationDbContext(DbContextOptions dbContextOptions) : base(dbContextOptions)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
public DbSet<Stock> Stocks { get; set; }
|
|
public DbSet<Comment> Comments { get; set; }
|
|
}
|
|
} |