示例#1
0
 public UserRepository(PhotoContext context)
 {
     photoContext = context;
 }
示例#2
0
 public UserController()
 {
     photoContext = new PhotoContext();
     userRepository = new UserRepository(photoContext);
 }
示例#3
0
 public PhotoRepository(PhotoContext context)
 {
     photoContext = context;
 }