예제 #1
0
 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);
 }
예제 #2
0
 public PhotoManager(LifeGalleryContext context)
 {
     db = context;
 }
예제 #3
0
 public ProfileManager(LifeGalleryContext context)
 {
     db = context;
 }
예제 #4
0
 public LikeManager(LifeGalleryContext context)
 {
     db = context;
 }
예제 #5
0
 public CategoryManager(LifeGalleryContext context)
 {
     db = context;
 }
예제 #6
0
 public CommentManager(LifeGalleryContext context)
 {
     db = context;
 }