C# Class NSoft.NFramework.Data.MongoDB.MongoRepository

IMongoRepository 를 위한 확장 메소드를 제공합니다.
Show file Open project: debop/NFramework

Public Methods

Method Description
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

Method Details

CreateIndex() public static method

인덱스를 생성합니다.
public static CreateIndex ( this repository ) : void
repository this MongRepository 인스턴스
return void

CreateIndex() public static method

인덱스를 생성합니다.
public static CreateIndex ( this repository, IMongoIndexKeys keys ) : void
repository this MongRepository 인스턴스
keys IMongoIndexKeys 인덱스 키
return void

CreateIndex() public static method

인덱스를 생성합니다.
public static CreateIndex ( this repository, IMongoIndexKeys keys, IMongoIndexOptions options ) : void
repository this MongRepository 인스턴스
keys IMongoIndexKeys 인덱스 키
options IMongoIndexOptions 인덱스 옵션
return void

DeleteAllFile() public static method

모든 파일을 삭제합니다.
public static DeleteAllFile ( this repository ) : void
repository this
return void

DeleteFile() public static method

public static DeleteFile ( this repository, IMongoQuery query ) : void
repository this
query IMongoQuery
return void

DeleteFile() public static method

public static DeleteFile ( this repository, string remoteFilename ) : void
repository this
remoteFilename string
return void

DeleteFileById() public static method

public static DeleteFileById ( this repository, BsonValue id ) : void
repository this
id BsonValue
return void

DownloadFile() public static method

public static DownloadFile ( this repository, Stream stream, IMongoQuery query ) : void
repository this
stream Stream
query IMongoQuery
return void

DownloadFile() public static method

public static DownloadFile ( this repository, Stream stream, IMongoQuery query, int version ) : void
repository this
stream Stream
query IMongoQuery
version int
return void

DownloadFile() public static method

public static DownloadFile ( this repository, Stream stream, MongoGridFSFileInfo fileInfo ) : void
repository this
stream Stream
fileInfo MongoGridFSFileInfo
return void

DownloadFile() public static method

public static DownloadFile ( this repository, Stream stream, string remoteFilename ) : void
repository this
stream Stream
remoteFilename string
return void

DownloadFile() public static method

public static DownloadFile ( this repository, Stream stream, string remoteFilename, int version ) : void
repository this
stream Stream
remoteFilename string
version int
return void

DropAllIndexes() public static method

인덱스 제거
public static DropAllIndexes ( this repository ) : CommandResult
repository this MongRepository 인스턴스
return MongoDB.Driver.CommandResult

DropIndex() public static method

인덱스 제거
public static DropIndex ( this repository, IMongoIndexKeys keys ) : CommandResult
repository this MongRepository 인스턴스
keys IMongoIndexKeys 인덱스 키
return MongoDB.Driver.CommandResult

DropIndexByName() public static method

인덱스 제거
public static DropIndexByName ( this repository, string indexName ) : CommandResult
repository this MongRepository 인스턴스
indexName string 인덱스 명
return MongoDB.Driver.CommandResult

EnsureIndex() public static method

해당 인덱스가 존재하지 않으면 새로 생성합니다.
public static EnsureIndex ( this repository ) : void
repository this MongRepository 인스턴스
return void

EnsureIndex() public static method

해당 인덱스가 존재하지 않으면 새로 생성합니다.
public static EnsureIndex ( this repository, IMongoIndexKeys keys ) : void
repository this MongRepository 인스턴스
keys IMongoIndexKeys
return void

EnsureIndex() public static method

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

FileExists() public static method

public static FileExists ( this repository, IMongoQuery query ) : bool
repository this
query IMongoQuery
return bool

FileExists() public static method

public static FileExists ( this repository, string remoteFilename ) : bool
repository this
remoteFilename string
return bool

FileExistsById() public static method

public static FileExistsById ( this repository, BsonValue id ) : bool
repository this
id BsonValue
return bool

FindAllFile() public static method

public static FindAllFile ( this repository ) : MongoCursor
repository this
return MongoCursor

FindFile() public static method

public static FindFile ( this repository, IMongoQuery query ) : MongoCursor
repository this
query IMongoQuery
return MongoCursor

FindFile() public static method

public static FindFile ( this repository, string remoteFilename ) : MongoCursor
repository this
remoteFilename string
return MongoCursor

FindOneFile() public static method

public static FindOneFile ( this repository, IMongoQuery query ) : MongoGridFSFileInfo
repository this
query IMongoQuery
return MongoGridFSFileInfo

FindOneFile() public static method

public static FindOneFile ( this repository, string remoteFilename ) : MongoGridFSFileInfo
repository this
remoteFilename string
return MongoGridFSFileInfo

FindOneFile() public static method

public static FindOneFile ( this repository, string remoteFilename, int version ) : MongoGridFSFileInfo
repository this
remoteFilename string
version int
return MongoGridFSFileInfo

FindOneFileById() public static method

public static FindOneFileById ( this repository, BsonValue id ) : MongoGridFSFileInfo
repository this
id BsonValue
return MongoGridFSFileInfo

GetIndexes() public static method

repository의 현재 컬렉션의 모든 인덱스 정보를 가져옵니다.
public static GetIndexes ( this repository ) : GetIndexesResult
repository this
return GetIndexesResult

IndexExistsByName() public static method

인덱스 존재 여부를 파악합니다.
public static IndexExistsByName ( this repository, string indexName ) : bool
repository this MongRepository 인스턴스
indexName string 인덱스 명
return bool

OpenFile() public static method

public static OpenFile ( this repository, string remoteFilename ) : MongoGridFSStream
repository this
remoteFilename string
return MongoGridFSStream

OpenFileText() public static method

public static OpenFileText ( this repository, string remoteFilename ) : StreamReader
repository this
remoteFilename string
return StreamReader

Ping() public static method

서버와의 접속이 제대로 되었는지 확인합니다.
public static Ping ( this repository ) : void
repository this MongRepository 인스턴스
return void

UploadFile() public static method

public static UploadFile ( this repository, string localFilename ) : MongoGridFSFileInfo
repository this
localFilename string
return MongoGridFSFileInfo

UploadFile() public static method

public static UploadFile ( this repository, string remoteFilename, Stream stream ) : MongoGridFSFileInfo
repository this
remoteFilename string
stream Stream
return MongoGridFSFileInfo

UploadFile() public static method

public static UploadFile ( this repository, string remoteFilename, Stream stream, MongoGridFSCreateOptions createOptions ) : MongoGridFSFileInfo
repository this
remoteFilename string
stream Stream
createOptions MongoGridFSCreateOptions
return MongoGridFSFileInfo

UploadFile() public static method

public static UploadFile ( this repository, string localFilename, string remoteFilename ) : MongoGridFSFileInfo
repository this
localFilename string
remoteFilename string
return MongoGridFSFileInfo