public CourseLibraryRepository(CourseLibraryContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }
public CourseLibraryRepository(CourseLibraryContext context, IPropertyMappingService propertyMappingService) { _context = context ?? throw new ArgumentNullException(nameof(context)); _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService)); }
public Repository(CourseLibraryContext context) { _context = context ?? throw new ArgumentNullException(nameof(context));; _entity = context.Set <T>(); }