Beispiel #1
0
 public CourseLibraryRepository(CourseLibraryContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Beispiel #2
0
 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>();
 }