FireDAC.Phys.MongoDBWrapper.TMongoExpression.Add
Delphi
function Add(const AKey: String; const AValue: String): TMongoExpression<T>; overload; inline;
function Add(const AKey: String; const AValue: Int32): TMongoExpression<T>; overload; inline;
function Add(const AKey: String; const AValue: Int64): TMongoExpression<T>; overload; inline;
function Add(const AKey: String; const AValue: Extended): TMongoExpression<T>; overload; inline;
function Add(const AKey: String; const AValue: Boolean): TMongoExpression<T>; overload; inline;
function Add(const AKey: String; const AValue: TDateTime): TMongoExpression<T>; overload; inline;
function Add(const AKey: String; const AValue: TBytes; ABinaryType: TJsonBinaryType = TJsonBinaryType.Generic): TMongoExpression<T>; overload; inline;
function Add(const AKey: String; const AValue: TMongoOID): TMongoExpression<T>; overload; inline;
function Add(const AKey: String; const AValue: TJsonOid): TMongoExpression<T>; overload;
function Add(const AKey: string; const AValue: TJsonRegEx): TMongoExpression<T>; overload;
function Add(const AKey: string; const AValue: TJsonDBRef): TMongoExpression<T>; overload;
function Add(const AKey: string; const AValue: TJsonCodeWScope): TMongoExpression<T>; overload;
function Add(const AKey: String; const AValue: TVarRec): TMongoExpression<T>; overload; inline;
function Add(const AKey: String; const AValues: array of const): TMongoExpression<T>; overload;
function Add(const AKey: String; const AValue: Variant): TMongoExpression<T>; overload; inline;
C++
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const System::UnicodeString AValue)/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const int AValue)/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const __int64 AValue)/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const System::Extended AValue)/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const bool AValue)/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const System::TDateTime AValue)/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const System::DynamicArray<System::Byte> AValue, System::Json::Types::TJsonBinaryType ABinaryType = (System::Json::Types::TJsonBinaryType)(0x0))/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, TMongoOID* const AValue)/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const System::Json::Types::TJsonOid &AValue)/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const System::Json::Types::TJsonRegEx &AValue)/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const System::Json::Types::TJsonDBRef &AValue)/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const System::Json::Types::TJsonCodeWScope &AValue)/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const System::TVarRec &AValue)/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const System::TVarRec *AValues, const int AValues_High)/* overload */;
TMongoExpression__1<T>* __fastcall Add(const System::UnicodeString AKey, const System::Variant &AValue)/* overload */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | FireDAC.Phys.MongoDBWrapper.pas FireDAC.Phys.MongoDBWrapper.hpp |
FireDAC.Phys.MongoDBWrapper | TMongoExpression |
Description
Ajoute une paire champ-valeur ou un élément de tableau d'un type spécifique et renvoie une référence à cette expression.
Utilisez cette méthode pour ajouter une nouvelle paire champ-valeur ou un élément de tableau à une expression MongoDB (EN).
Cette méthode est surchargée. Utilisez une méthode surchargée appropriée pour ajouter une paire champ-valeur ou un élément de tableau d'un type spécifique.
En-tête de méthode | Description |
---|---|
Add(const AKey: String; const AValue: String)
|
Ajoute une paire champ-valeur ou un élément de tableau de type String. |
Add(const AKey: String; const AValue: Int32)
|
Ajoute une paire champ-valeur ou un élément de tableau de type Int32. |
Add(const AKey: String; const AValue: Int64)
|
Ajoute une paire champ-valeur ou un élément de tableau de type Int64. |
Add(const AKey: String; const AValue: Extended)
|
Ajoute une paire champ-valeur ou un élément de tableau de type Extended. |
Add(const AKey: String; const AValue: Boolean)
|
Ajoute une paire champ-valeur ou un élément de tableau de type Boolean. |
Add(const AKey: String; const AValue: TDateTime)
|
Ajoute une paire champ-valeur ou un élément de tableau de type TDateTime. |
Add(const AKey: String; const AValue: TBytes;
ABinaryType: TJsonBinaryType = TJsonBinaryType.Generic)
|
Ajoute une paire champ-valeur ou un élément de tableau de type TBytes. Facultativement, vous pouvez spécifier le paramètre |
Add(const AKey: String; const AValue: TMongoOID)
|
Ajoute une paire champ-valeur ou un élément de tableau de type TMongoOID. |
Add(const AKey: String; const AValue: TJsonOid)
|
Ajoute une paire champ-valeur ou un élément de tableau de type TJsonOid. |
Add(const AKey: String; const AValue: TJsonRegEx)
|
Ajoute une paire champ-valeur ou un élément de tableau de type TJsonRegEx. |
Add(const AKey: String; const AValue: TJsonDBRef)
|
Ajoute une paire champ-valeur ou un élément de tableau de type TJsonDBRef. |
Add(const AKey: String; const AValue: TJsonCodeWScope)
|
Ajoute une paire champ-valeur ou un élément de tableau de type TJsonCodeWScope. |
Add(const AKey: String; const AValue: TVarRec)
|
Ajoute une paire champ-valeur ou un élément de tableau de type TVarRec. |
Add(const AKey: String; const AValues: array of const)
|
Ajoute un tableau imbriqué en utilisant le tableau ouvert Le tableau ouvert représente un JSON "analysé". Pour ajouter plusieurs éléments, procédez comme suit :
Par exemple :
|
Add(const AKey: String; const AValue: Variant)
|
Ajoute une paire champ-valeur ou un élément de tableau d'un type représenté par le type de données Variant. |
REMARQUE : Lorsque vous ajoutez un tableau, la valeur
AKey
est ignorée. Pour une plus grande lisibilité, vous pouvez spécifier un index de tableau.