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