33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
|
using Microsoft.AspNetCore.Identity;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Marco.Pms.Model.Authentication;
|
|
using Marco.Pms.Model.Forum;
|
|
|
|
namespace Marco.Pms.DataAccess.Data
|
|
{
|
|
public class ForumDbContext : IdentityDbContext<IdentityUser>
|
|
{
|
|
private readonly IHttpContextAccessor _httpContextAccessor;
|
|
|
|
public ForumDbContext(DbContextOptions<ApplicationDbContext> options, IHttpContextAccessor httpContextAccessor) : base(options)
|
|
{
|
|
_httpContextAccessor = httpContextAccessor;
|
|
|
|
}
|
|
|
|
public DbSet<TicketForum> Tickets { get; set; }
|
|
public DbSet<TicketAttachment> TicketAttachments { get; set; }
|
|
public DbSet<TicketComment> TicketComments { get; set; }
|
|
public DbSet<TicketStatusMaster> TicketStatusMasters { get; set; }
|
|
public DbSet<TicketTypeMaster> TicketTypeMasters { get; set; }
|
|
|
|
}
|
|
}
|