public void seedDatabase(ArmDbContext dbContext) { dbContext.Friends.AddRange(friends); dbContext.Publications.AddRange(publications); dbContext.PublicationsToFriend.AddRange(borrows); dbContext.Reviews.AddRange(reviews); dbContext.SaveChanges(); }
public PublicationRepository(ArmDbContext armDbContext) { _armDbContext = armDbContext; }
public ReviewRepository(ArmDbContext armDbContext) { _armDbContext = armDbContext; }
public FriendRepository(ArmDbContext armDbContext) { _armDbContext = armDbContext; }
public BorrowRepository(ArmDbContext armDbContext) { _armDbContext = armDbContext; }