﻿using System.Data.Entity;
using ChatSystem.Models;
using Microsoft.AspNet.Identity.EntityFramework;

namespace ChatSystem.Data
{
    public class ChatSystemDbContext : IdentityDbContext<User>
    {
        public ChatSystemDbContext()
            : base("ChatSystemConnection")
        {
        }

        public static ChatSystemDbContext Create()
        {
            return new ChatSystemDbContext();
        }

        public virtual IDbSet<Message> Messages { get; set; }
    }
}
