protected NoSQLRepository(INoSQLCommand <Record> command, INoSQLQuery <Record, Filter> query, INoSQLConfiguration configuration) { _command = command ?? throw new ArgumentNullException(nameof(command)); _query = query ?? throw new ArgumentNullException(nameof(query)); var config = configuration ?? throw new ArgumentNullException(nameof(configuration)); config.LoadSettings(); var settings = new Dictionary <string, string>(config.Settings, StringComparer.InvariantCultureIgnoreCase); _command.Configure(settings); _query.Configure(settings); }
public Repository(INoSQLCommand <Record> command = null, INoSQLQuery <Record, Filter> query = null, ILGPDConfiguration config = null) : base(command ?? GetDefaultCommand(), query ?? GetDefaultQuery(), config ?? GetDefaultConfig()) { }
public BooksRepository(INoSQLCommand <BookRecord> command, INoSQLQuery <BookRecord, BookFilter> query, INoSQLConfiguration configuration) : base(command, query, configuration) { }