public LiteDbHelper(IOptions <LiteDbSettings> settings) { _settings = settings.Value ?? throw new ArgumentNullException(nameof(settings)); db = new LiteDatabase(_settings.Database); clients = db.GetCollection <Client>(_settings.Collection); }
public LiteDbMovieRepository(LiteDbSettings settings) { _conection = new LiteDatabase(settings.DatabaseName); }