internal void SetConnectAndCollectionAndBsonId(IConnect connect, MongoCollectionSettings mongoCollectionSettings)
 {
     SetCollectionNameAndBsonId();
     Connect    = connect;
     Collection = Connect.Collection <T>(CollectionName, mongoCollectionSettings);
 }
 public Repository(IConnect connect)
 {
     Connect = connect;
     BuilderSetCollectionName();
     Collection = Connect.Collection <T>(CollectionName);
 }
예제 #3
0
 internal void SetConnectAndCollection(IConnect connect)
 {
     _connect    = connect;
     _collection = _connect.Collection <TEntity>(_collectionName);
 }
예제 #4
0
 internal void SetConnectAndCollection(IConnect connect) => _mongoCollection = connect.Collection <UserDto>(_collection, _database);