public DataAccess(ParrisDbContext context)
        {
            _context = context;

            AlbumPhotoes   = new Repository <AlbumPhoto>(context);
            Educations     = new Repository <Education>(context);
            Emails         = new Repository <Email>(context);
            EmailTypes     = new Repository <EmailType>(context);
            Employers      = new Repository <Employer>(context);
            Links          = new Repository <Link>(context);
            LinkTypes      = new Repository <LinkType>(context);
            Phones         = new Repository <Phone>(context);
            PhoneTypes     = new Repository <PhoneType>(context);
            ProfilePhotoes = new Repository <ProfilePhoto>(context);
            Quotes         = new Repository <Quote>(context);
            Statuses       = new Repository <Status>(context);
            Comments       = new Repository <Comment>(context);
        }
Exemplo n.º 2
0
 public EventController()
 {
     _context = new ParrisDbContext();
 }