protected virtual void Dispose(bool disposing) { if (!_disposed) { if (disposing) { ApplicationDataBaseContext.Dispose(); } } _disposed = true; }
public UnitOfWork(ApplicationDataBaseContext applicationDataBaseContext) { _applicationDataBaseContext = applicationDataBaseContext; Computers = new ComputerRepository(_applicationDataBaseContext); ComputerSystems = new ComputerSystemRepository(_applicationDataBaseContext); Processors = new ProcessorRepository(_applicationDataBaseContext); PhysicalMemories = new PhysicalMemoryRepository(_applicationDataBaseContext); DiskDrives = new DiskDriveRepository(_applicationDataBaseContext); MotherBoards = new MotherBoardRepository(_applicationDataBaseContext); VideoCards = new VideoCardRepository(_applicationDataBaseContext); Processes = new ProcessRepository(_applicationDataBaseContext); ProcessesInformation = new ProcessInformationRepository(_applicationDataBaseContext); ProcessesPerfomance = new ProcessPerfomanceRepository(_applicationDataBaseContext); }
public UnitOfWork(ApplicationDataBaseContext applicationDataBaseContext, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, RoleManager <IdentityRole> roleManager) { _applicationDataBaseContext = applicationDataBaseContext; UserManager = userManager; SignInManager = signInManager; RoleManager = roleManager; CommentLikes = new CommentLikeRepository(_applicationDataBaseContext); Comments = new CommentRepository(_applicationDataBaseContext); LectureNoteRatings = new LectureNoteRatingRepository(_applicationDataBaseContext); LectureNotes = new LectureNoteRepository(_applicationDataBaseContext); LectureNoteTags = new LectureNoteTagRepository(_applicationDataBaseContext); SpecialtyNumber = new SpecialtyNumberRepositpry(_applicationDataBaseContext); Tags = new TagRepository(_applicationDataBaseContext); Users = new UserRepository(_applicationDataBaseContext); }
public Repository(ApplicationDataBaseContext dataBaseContext) { _dataBaseContext = dataBaseContext; _DbSet = _dataBaseContext.Set <TEntity>(); }
public async Task SaveAsync() => await ApplicationDataBaseContext.SaveChangesAsync();
public LectureNoteTagRepository(ApplicationDataBaseContext dataBaseContext) : base(dataBaseContext) { }
public ProcessInformationRepository(ApplicationDataBaseContext applicationDataBaseContext) : base(applicationDataBaseContext) { }
public VideoCardRepository(ApplicationDataBaseContext applicationDataBaseContext) : base(applicationDataBaseContext) { }
public DiskDriveRepository(ApplicationDataBaseContext applicationDataBaseContex) : base(applicationDataBaseContex) { }
public ComputerSystemRepository(ApplicationDataBaseContext applicationDataBaseContext) : base(applicationDataBaseContext) { }
public PhysicalMemoryRepository(ApplicationDataBaseContext applicationDataBaseContext) : base(applicationDataBaseContext) { }
protected Repository(ApplicationDataBaseContext applicationDataBaseContext) { _applicationDataBaseContext = applicationDataBaseContext; _DbSet = _applicationDataBaseContext.Set <TEntity>(); }
public ProcessPerfomanceRepository(ApplicationDataBaseContext applicationDataBaseContext) : base(applicationDataBaseContext) { }
public TagRepository(ApplicationDataBaseContext dataBaseContext) : base(dataBaseContext) { }
public CommentRepository(ApplicationDataBaseContext dataBaseContext) : base(dataBaseContext) { }
public MotherBoardRepository(ApplicationDataBaseContext applicationDataBaseContext) : base(applicationDataBaseContext) { }
public SpecialtyNumberRepositpry(ApplicationDataBaseContext dataBaseContext) : base(dataBaseContext) { }