protected virtual void Dispose(bool disposing) { if (disposing == true) { entities = null; } }
public ServiceTransaksi() { entities = new SimpedaEntities(); TransaksisRepository = new TransaksisRepository(entities); }
public TransaksisRepository(SimpedaEntities entities) { this.entities = entities; }
public SepedasRepository(SimpedaEntities dbEntities) { this.db = dbEntities; }
public ServiceSepeda() { db = new SimpedaEntities(); SepedasRepository = new SepedasRepository(db); }
public MahasiswaRepository(SimpedaEntities dbEntities) { this.db = dbEntities; }
public ServiceMahasiswa() { entities = new SimpedaEntities(); MahasiswaRepository = new MahasiswaRepository(entities); }