C# Класс NSoft.NFramework.Data.MongoDB.MongoRepository

IMongoRepository 를 위한 확장 메소드를 제공합니다.
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateIndex ( this repository ) : void

인덱스를 생성합니다.

CreateIndex ( this repository, IMongoIndexKeys keys ) : void

인덱스를 생성합니다.

CreateIndex ( this repository, IMongoIndexKeys keys, IMongoIndexOptions options ) : void

인덱스를 생성합니다.

DeleteAllFile ( this repository ) : void

모든 파일을 삭제합니다.

DeleteFile ( this repository, IMongoQuery query ) : void
DeleteFile ( this repository, string remoteFilename ) : void
DeleteFileById ( this repository, BsonValue id ) : void
DownloadFile ( this repository, Stream stream, IMongoQuery query ) : void
DownloadFile ( this repository, Stream stream, IMongoQuery query, int version ) : void
DownloadFile ( this repository, Stream stream, MongoGridFSFileInfo fileInfo ) : void
DownloadFile ( this repository, Stream stream, string remoteFilename ) : void
DownloadFile ( this repository, Stream stream, string remoteFilename, int version ) : void
DropAllIndexes ( this repository ) : CommandResult

인덱스 제거

DropIndex ( this repository, IMongoIndexKeys keys ) : CommandResult

인덱스 제거

DropIndexByName ( this repository, string indexName ) : CommandResult

인덱스 제거

EnsureIndex ( this repository ) : void

해당 인덱스가 존재하지 않으면 새로 생성합니다.

EnsureIndex ( this repository, IMongoIndexKeys keys ) : void

해당 인덱스가 존재하지 않으면 새로 생성합니다.

EnsureIndex ( this repository, IMongoIndexKeys keys, IMongoIndexOptions options ) : void

해당 인덱스가 존재하지 않으면 새로 생성합니다.

FileExists ( this repository, IMongoQuery query ) : bool
FileExists ( this repository, string remoteFilename ) : bool
FileExistsById ( this repository, BsonValue id ) : bool
FindAllFile ( this repository ) : MongoCursor
FindFile ( this repository, IMongoQuery query ) : MongoCursor
FindFile ( this repository, string remoteFilename ) : MongoCursor
FindOneFile ( this repository, IMongoQuery query ) : MongoGridFSFileInfo
FindOneFile ( this repository, string remoteFilename ) : MongoGridFSFileInfo
FindOneFile ( this repository, string remoteFilename, int version ) : MongoGridFSFileInfo
FindOneFileById ( this repository, BsonValue id ) : MongoGridFSFileInfo
GetIndexes ( this repository ) : GetIndexesResult

repository의 현재 컬렉션의 모든 인덱스 정보를 가져옵니다.

IndexExistsByName ( this repository, string indexName ) : bool

인덱스 존재 여부를 파악합니다.

OpenFile ( this repository, string remoteFilename ) : MongoGridFSStream
OpenFileText ( this repository, string remoteFilename ) : StreamReader
Ping ( this repository ) : void

서버와의 접속이 제대로 되었는지 확인합니다.

UploadFile ( this repository, string localFilename ) : MongoGridFSFileInfo
UploadFile ( this repository, string remoteFilename, Stream stream ) : MongoGridFSFileInfo
UploadFile ( this repository, string remoteFilename, Stream stream, MongoGridFSCreateOptions createOptions ) : MongoGridFSFileInfo
UploadFile ( this repository, string localFilename, string remoteFilename ) : MongoGridFSFileInfo

Описание методов

CreateIndex() публичный статический Метод

인덱스를 생성합니다.
public static CreateIndex ( this repository ) : void
repository this MongRepository 인스턴스
Результат void

CreateIndex() публичный статический Метод

인덱스를 생성합니다.
public static CreateIndex ( this repository, IMongoIndexKeys keys ) : void
repository this MongRepository 인스턴스
keys IMongoIndexKeys 인덱스 키
Результат void

CreateIndex() публичный статический Метод

인덱스를 생성합니다.
public static CreateIndex ( this repository, IMongoIndexKeys keys, IMongoIndexOptions options ) : void
repository this MongRepository 인스턴스
keys IMongoIndexKeys 인덱스 키
options IMongoIndexOptions 인덱스 옵션
Результат void

DeleteAllFile() публичный статический Метод

모든 파일을 삭제합니다.
public static DeleteAllFile ( this repository ) : void
repository this
Результат void

DeleteFile() публичный статический Метод

public static DeleteFile ( this repository, IMongoQuery query ) : void
repository this
query IMongoQuery
Результат void

DeleteFile() публичный статический Метод

public static DeleteFile ( this repository, string remoteFilename ) : void
repository this
remoteFilename string
Результат void

DeleteFileById() публичный статический Метод

public static DeleteFileById ( this repository, BsonValue id ) : void
repository this
id BsonValue
Результат void

DownloadFile() публичный статический Метод

public static DownloadFile ( this repository, Stream stream, IMongoQuery query ) : void
repository this
stream Stream
query IMongoQuery
Результат void

DownloadFile() публичный статический Метод

public static DownloadFile ( this repository, Stream stream, IMongoQuery query, int version ) : void
repository this
stream Stream
query IMongoQuery
version int
Результат void

DownloadFile() публичный статический Метод

public static DownloadFile ( this repository, Stream stream, MongoGridFSFileInfo fileInfo ) : void
repository this
stream Stream
fileInfo MongoGridFSFileInfo
Результат void

DownloadFile() публичный статический Метод

public static DownloadFile ( this repository, Stream stream, string remoteFilename ) : void
repository this
stream Stream
remoteFilename string
Результат void

DownloadFile() публичный статический Метод

public static DownloadFile ( this repository, Stream stream, string remoteFilename, int version ) : void
repository this
stream Stream
remoteFilename string
version int
Результат void

DropAllIndexes() публичный статический Метод

인덱스 제거
public static DropAllIndexes ( this repository ) : CommandResult
repository this MongRepository 인스턴스
Результат MongoDB.Driver.CommandResult

DropIndex() публичный статический Метод

인덱스 제거
public static DropIndex ( this repository, IMongoIndexKeys keys ) : CommandResult
repository this MongRepository 인스턴스
keys IMongoIndexKeys 인덱스 키
Результат MongoDB.Driver.CommandResult

DropIndexByName() публичный статический Метод

인덱스 제거
public static DropIndexByName ( this repository, string indexName ) : CommandResult
repository this MongRepository 인스턴스
indexName string 인덱스 명
Результат MongoDB.Driver.CommandResult

EnsureIndex() публичный статический Метод

해당 인덱스가 존재하지 않으면 새로 생성합니다.
public static EnsureIndex ( this repository ) : void
repository this MongRepository 인스턴스
Результат void

EnsureIndex() публичный статический Метод

해당 인덱스가 존재하지 않으면 새로 생성합니다.
public static EnsureIndex ( this repository, IMongoIndexKeys keys ) : void
repository this MongRepository 인스턴스
keys IMongoIndexKeys
Результат void

EnsureIndex() публичный статический Метод

해당 인덱스가 존재하지 않으면 새로 생성합니다.
public static EnsureIndex ( this repository, IMongoIndexKeys keys, IMongoIndexOptions options ) : void
repository this MongRepository 인스턴스
keys IMongoIndexKeys
options IMongoIndexOptions
Результат void

FileExists() публичный статический Метод

public static FileExists ( this repository, IMongoQuery query ) : bool
repository this
query IMongoQuery
Результат bool

FileExists() публичный статический Метод

public static FileExists ( this repository, string remoteFilename ) : bool
repository this
remoteFilename string
Результат bool

FileExistsById() публичный статический Метод

public static FileExistsById ( this repository, BsonValue id ) : bool
repository this
id BsonValue
Результат bool

FindAllFile() публичный статический Метод

public static FindAllFile ( this repository ) : MongoCursor
repository this
Результат MongoCursor

FindFile() публичный статический Метод

public static FindFile ( this repository, IMongoQuery query ) : MongoCursor
repository this
query IMongoQuery
Результат MongoCursor

FindFile() публичный статический Метод

public static FindFile ( this repository, string remoteFilename ) : MongoCursor
repository this
remoteFilename string
Результат MongoCursor

FindOneFile() публичный статический Метод

public static FindOneFile ( this repository, IMongoQuery query ) : MongoGridFSFileInfo
repository this
query IMongoQuery
Результат MongoGridFSFileInfo

FindOneFile() публичный статический Метод

public static FindOneFile ( this repository, string remoteFilename ) : MongoGridFSFileInfo
repository this
remoteFilename string
Результат MongoGridFSFileInfo

FindOneFile() публичный статический Метод

public static FindOneFile ( this repository, string remoteFilename, int version ) : MongoGridFSFileInfo
repository this
remoteFilename string
version int
Результат MongoGridFSFileInfo

FindOneFileById() публичный статический Метод

public static FindOneFileById ( this repository, BsonValue id ) : MongoGridFSFileInfo
repository this
id BsonValue
Результат MongoGridFSFileInfo

GetIndexes() публичный статический Метод

repository의 현재 컬렉션의 모든 인덱스 정보를 가져옵니다.
public static GetIndexes ( this repository ) : GetIndexesResult
repository this
Результат GetIndexesResult

IndexExistsByName() публичный статический Метод

인덱스 존재 여부를 파악합니다.
public static IndexExistsByName ( this repository, string indexName ) : bool
repository this MongRepository 인스턴스
indexName string 인덱스 명
Результат bool

OpenFile() публичный статический Метод

public static OpenFile ( this repository, string remoteFilename ) : MongoGridFSStream
repository this
remoteFilename string
Результат MongoGridFSStream

OpenFileText() публичный статический Метод

public static OpenFileText ( this repository, string remoteFilename ) : StreamReader
repository this
remoteFilename string
Результат StreamReader

Ping() публичный статический Метод

서버와의 접속이 제대로 되었는지 확인합니다.
public static Ping ( this repository ) : void
repository this MongRepository 인스턴스
Результат void

UploadFile() публичный статический Метод

public static UploadFile ( this repository, string localFilename ) : MongoGridFSFileInfo
repository this
localFilename string
Результат MongoGridFSFileInfo

UploadFile() публичный статический Метод

public static UploadFile ( this repository, string remoteFilename, Stream stream ) : MongoGridFSFileInfo
repository this
remoteFilename string
stream Stream
Результат MongoGridFSFileInfo

UploadFile() публичный статический Метод

public static UploadFile ( this repository, string remoteFilename, Stream stream, MongoGridFSCreateOptions createOptions ) : MongoGridFSFileInfo
repository this
remoteFilename string
stream Stream
createOptions MongoGridFSCreateOptions
Результат MongoGridFSFileInfo

UploadFile() публичный статический Метод

public static UploadFile ( this repository, string localFilename, string remoteFilename ) : MongoGridFSFileInfo
repository this
localFilename string
remoteFilename string
Результат MongoGridFSFileInfo