Init
This commit is contained in:
21
Data/ApplicationDbContext.cs
Normal file
21
Data/ApplicationDbContext.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user