C# Class MongoUtility.Command.ElementHelper

Datei anzeigen Open project: magicdict/MongoCola

Public Properties

Property Type Description
ClipElement object
IsElementClip bool

Public Methods

Method Description
AddArrayValue ( string elementPath, BsonValue addValue, BsonDocument currentDocument, MongoCollection currentCollection ) : void

Add Value

AddElement ( string elementPath, BsonElement addElement, BsonDocument currentDocument, MongoCollection currentCollection ) : string

Add Element

CopyElement ( BsonElement el ) : void

Cut Element

CopyValue ( BsonValue val ) : void

Cut Array Value

CutElement ( string elementPath, BsonElement el, BsonDocument currentDocument, MongoCollection currentCollection ) : void

Cut Element

CutValue ( string elementPath, int valueIndex, BsonValue val, BsonDocument currentDocument, MongoCollection currentCollection ) : void

Cut Array Value

DropArrayValue ( string elementPath, int valueIndex, BsonDocument currentDocument, MongoCollection currentCollection ) : void

Drop A Value of Array

DropElement ( string elementPath, BsonElement el, BsonDocument currentDocument, MongoCollection currentCollection ) : void

Drop Element

GetLastParentDocument ( BsonDocument baseDoc, string elementPath, bool isGetLast ) : BsonValue

Locate the Operation Place

ModifyArrayValue ( string elementPath, BsonValue newValue, int valueIndex, BsonDocument currentDocument, MongoCollection currentCollection ) : void

Modify A Value of Array

ModifyElement ( string elementPath, BsonValue newValue, BsonElement el, BsonDocument currentDocument, MongoCollection currentCollection ) : void

Modify Element

PasteElement ( string elementPath, BsonDocument currentDocument, MongoCollection currentCollection ) : string

Paste

PasteValue ( string elementPath, BsonDocument currentDocument, MongoCollection currentCollection ) : void

Method Details

AddArrayValue() public static method

Add Value
public static AddArrayValue ( string elementPath, BsonValue addValue, BsonDocument currentDocument, MongoCollection currentCollection ) : void
elementPath string
addValue BsonValue
currentDocument BsonDocument
currentCollection MongoCollection
return void

AddElement() public static method

Add Element
public static AddElement ( string elementPath, BsonElement addElement, BsonDocument currentDocument, MongoCollection currentCollection ) : string
elementPath string
addElement BsonElement
currentDocument BsonDocument
currentCollection MongoCollection
return string

CopyElement() public static method

Cut Element
public static CopyElement ( BsonElement el ) : void
el BsonElement
return void

CopyValue() public static method

Cut Array Value
public static CopyValue ( BsonValue val ) : void
val BsonValue
return void

CutElement() public static method

Cut Element
public static CutElement ( string elementPath, BsonElement el, BsonDocument currentDocument, MongoCollection currentCollection ) : void
elementPath string
el BsonElement
currentDocument BsonDocument
currentCollection MongoCollection
return void

CutValue() public static method

Cut Array Value
public static CutValue ( string elementPath, int valueIndex, BsonValue val, BsonDocument currentDocument, MongoCollection currentCollection ) : void
elementPath string
valueIndex int
val BsonValue
currentDocument BsonDocument
currentCollection MongoCollection
return void

DropArrayValue() public static method

Drop A Value of Array
public static DropArrayValue ( string elementPath, int valueIndex, BsonDocument currentDocument, MongoCollection currentCollection ) : void
elementPath string
valueIndex int
currentDocument BsonDocument
currentCollection MongoCollection
return void

DropElement() public static method

Drop Element
public static DropElement ( string elementPath, BsonElement el, BsonDocument currentDocument, MongoCollection currentCollection ) : void
elementPath string
el BsonElement
currentDocument BsonDocument
currentCollection MongoCollection
return void

GetLastParentDocument() public static method

Locate the Operation Place
public static GetLastParentDocument ( BsonDocument baseDoc, string elementPath, bool isGetLast ) : BsonValue
baseDoc BsonDocument
elementPath string
isGetLast bool T:GetOperationPlace F:GetOperationPlace Parent
return BsonValue

ModifyArrayValue() public static method

Modify A Value of Array
public static ModifyArrayValue ( string elementPath, BsonValue newValue, int valueIndex, BsonDocument currentDocument, MongoCollection currentCollection ) : void
elementPath string
newValue BsonValue
valueIndex int
currentDocument BsonDocument
currentCollection MongoCollection
return void

ModifyElement() public static method

Modify Element
public static ModifyElement ( string elementPath, BsonValue newValue, BsonElement el, BsonDocument currentDocument, MongoCollection currentCollection ) : void
elementPath string
newValue BsonValue
el BsonElement
currentDocument BsonDocument
currentCollection MongoCollection
return void

PasteElement() public static method

Paste
public static PasteElement ( string elementPath, BsonDocument currentDocument, MongoCollection currentCollection ) : string
elementPath string
currentDocument BsonDocument
currentCollection MongoCollection
return string

PasteValue() public static method

public static PasteValue ( string elementPath, BsonDocument currentDocument, MongoCollection currentCollection ) : void
elementPath string
currentDocument BsonDocument
currentCollection MongoCollection
return void

Property Details

ClipElement public_oe static_oe property

public static object ClipElement
return object

IsElementClip public_oe static_oe property

public static bool IsElementClip
return bool