public UsersService(IRunesDbContext db)
 {
     this.db = db;
 }
示例#2
0
 public UserService(IRunesDbContext dbContext)
 {
     Context = dbContext;
 }
示例#3
0
 public TrackService(IRunesDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public AlbumService(IRunesDbContext dbContext)
 {
     Context = dbContext;
 }
 public TrackService()
 {
     this.Context = new IRunesDbContext();
 }
示例#6
0
        private static void ConfigureDatabase()
        {
            IRunesDbContext context = new IRunesDbContext();

            context.Database.Migrate();
        }
示例#7
0
 public TrackService(IRunesDbContext context)
 {
     this.context = context;
 }
示例#8
0
 public BaseController()
 {
     this.dbContext     = new IRunesDbContext();
     this.cookieService = new UserCookieService();
 }
示例#9
0
        private static void InitializeDb()
        {
            var db = new IRunesDbContext();

            db.Database.EnsureCreated();
        }
示例#10
0
 public TracksService(IRunesDbContext db)
 {
     this.db = db;
 }
示例#11
0
 public UserService()
 {
     this.context     = new IRunesDbContext();
     this.hashService = new HashService();
 }