示例#1
0
 /// <summary>
 /// Constructor to allow a passed in db context
 /// </summary>
 /// <param name="context">The context to use</param>
 public HomeController(masterEntities context)
     : base(context)
 {
     pageSize = PAGE_SIZE;
     db = this.getDB();
     userAccess = new UserAccess(db);
 }
 /// <summary>
 /// Constructor to create the default db context
 /// </summary>
 public MyWorkoutsController()
     : base()
 {
     pageSize = PAGE_SIZE;
     db = this.getDB();
     userAccess = new UserAccess(db);
 }
 /// <summary>
 /// Constructor to allow a passed in db context
 /// </summary>
 /// <param name="context">The context to use</param>
 public FavoriteWorkoutsController(masterEntities context)
     : base(context)
 {
     db = this.getDB();
     userAccess = new UserAccess(db);
     pageSize = PAGE_SIZE;
 }
 /// <summary>
 /// Constructor to create the default db context
 /// </summary>
 public FavoriteWorkoutsController()
     : base()
 {
     db = this.getDB();
     userAccess = new UserAccess(db);
     pageSize = PAGE_SIZE;
 }
 /// <summary>
 /// Constructor to create the default db context
 /// </summary>
 public ExerciseController()
     : base()
 {
     db = this.getDB();
     userAccess = new UserAccess(db);
 }
 public AdminHomeController()
     : base()
 {
     db = this.getDB();
     userAccess = new UserAccess(db);
 }
示例#7
0
 public UserAccess(masterEntities db)
 {
     this.db = db;
 }
 /// <summary>
 /// Constructor to create the default db context
 /// </summary>
 public AdminExercisesController()
     : base()
 {
     db = this.getDB();
     pageSize = PAGE_SIZE;
 }
 /// <summary>
 /// Constructor to create the default db context
 /// </summary>
 public WorkoutRatingController()
     : base()
 {
     db = this.getDB();
     userAccess = new UserAccess(db);
 }
示例#10
0
 public MyProfileController(masterEntities context)
     : base(context)
 {
     db = this.getDB();
     userAccess = new UserAccess(db);
 }
示例#11
0
 public MyProfileController()
     : base()
 {
     db = this.getDB();
     userAccess = new UserAccess(db);
 }
示例#12
0
 /// <summary>
 /// Constructs a new db instance
 /// </summary>
 public GoFitBaseController()
 {
     db = new masterEntities();
 }
示例#13
0
 /// <summary>
 /// Sets the db to the given context
 /// For testing
 /// </summary>
 /// <param name="context">The context to set the db to</param>
 public GoFitBaseController(masterEntities context)
 {
     db = context;
 }
 /// <summary>
 /// Constructor to create the default db context
 /// </summary>
 public AdminCommentsController()
     : base()
 {
     db = this.getDB();
     pageSize = PAGE_SIZE;
 }
示例#15
0
 /// <summary>
 /// Constructor to allow a passed in db context
 /// </summary>
 /// <param name="context">The context to use</param>
 public ExerciseController(masterEntities context)
 {
     db = context;
     userAccess = new UserAccess(db);
 }
示例#16
0
 /// <summary>
 /// Constructor to create the default db context
 /// </summary>
 public CommentsController()
     : base()
 {
     db = this.getDB();
     userAccess = new UserAccess(db);
 }
示例#17
0
 /// <summary>
 /// Constructor to allow a passed in db context
 /// </summary>
 /// <param name="context">The context to use</param>
 public CommentsController(masterEntities context)
     : base(context)
 {
     db = this.getDB();
     userAccess = new UserAccess(db);
 }
示例#18
0
 /// <summary>
 /// Constructs a recommender with the given db context
 /// </summary>
 /// <param name="context"></param>
 public Recommender(masterEntities context)
 {
     db = context;
 }
示例#19
0
 /// <summary>
 /// Constructor to create the default db context
 /// </summary>
 public MyAccountController()
 {
     db = new masterEntities();
 }
 /// <summary>
 /// Constructor to allow a passed in db context
 /// </summary>
 /// <param name="context">The context to use</param>
 public WorkoutRatingController(masterEntities context)
     : base(context)
 {
     db = this.getDB();
     userAccess = new UserAccess(db);
 }
示例#21
0
 /// <summary>
 /// Parameterized constructor that takes a db context as the parameter
 /// </summary>
 /// <param name="context">The db context to use</param>
 public MyAccountController(masterEntities context)
 {
     db = context;
 }
 /// <summary>
 /// Override to allow passing of db for controller construction
 /// </summary>
 /// <param name="context">The db to use</param>
 public AdminExercisesController(masterEntities context)
     : base(context)
 {
     db = this.getDB();
     pageSize = PAGE_SIZE;
 }
 /// <summary>
 /// Constructor to create the default db context
 /// </summary>
 public AdminCategoriesController()
     : base()
 {
     db = this.getDB();
     pageSize = PAGE_SIZE;
 }