public LGUnitOfWork(string connectionString) { db = new LifeGalleryContext(connectionString); UserManager = new ApplicationUserManager(new UserStore <ApplicationUser>(db)); RoleManager = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db)); ProfileManager = new ProfileManager(db); PhotoManager = new PhotoManager(db); CommentManager = new CommentManager(db); CategoryManager = new CategoryManager(db); LikeManager = new LikeManager(db); }
public PhotoManager(LifeGalleryContext context) { db = context; }
public ProfileManager(LifeGalleryContext context) { db = context; }
public LikeManager(LifeGalleryContext context) { db = context; }
public CategoryManager(LifeGalleryContext context) { db = context; }
public CommentManager(LifeGalleryContext context) { db = context; }