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); }
internal void SetConnectAndCollection(IConnect connect) { _connect = connect; _collection = _connect.Collection <TEntity>(_collectionName); }
internal void SetConnectAndCollection(IConnect connect) => _mongoCollection = connect.Collection <UserDto>(_collection, _database);