using System;
using System.Data.Entity;
using System.Linq;

namespace WebMail.Model
{
    public class WebMailContext : DbContext
    {
        public WebMailContext()
            : base("WebMailConnectionString")
        { 
        }

        public DbSet<Message> Messages { get; set; }
        public DbSet<Contact> Contacts { get; set; }
        public DbSet<Event> Events { get; set; }
        public DbSet<Note> Notes { get; set; }
        public DbSet<Folder> Folders { get; set; }
        public DbSet<EventCalendar> EventsCalendars { get; set; }
    }
}