using System.Data.Entity;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using CARRE_DSS2.Models;

namespace CARRE_DSS2.Models
{

    public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
    {
        public ApplicationDbContext()
            : base("DefaultConnection")
        {
        }

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

        public IDbSet<Observable> Observables { get; set; }
        public IDbSet<RiskElement> RiskElements { get; set; }
        public IDbSet<RiskEvidence> RiskEvidences { get; set; }
        public IDbSet<RiskFactor> RiskFactors { get; set; }
        public IDbSet<Patient> Patients { get; set; }
        public IDbSet<MeasurementBinding> MeasurementBindings { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }

    }
}