﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Hedy.Core.Authentication.Infrastructure.Identity
{
    /// <summary>
    /// Create and opens a connection to a Microsft SQl Server data base.
    /// Inherits from DbManager.
    /// </summary>
    public class ApplicationDbContext : DbManager
    {
        public ApplicationDbContext(string connectionName)
            : base(connectionName)
        {
        }

        public static ApplicationDbContext Create()
        {
            return new ApplicationDbContext(Constant.ConnectionString);
        }
    }
}