|
Pip-Services-Commons-Dotnet
|
Defines projection parameters with list if fields to include into query results. More...
Public Member Functions | |
| ProjectionParams () | |
| Creates a new instance of the projection parameters. More... | |
| ProjectionParams (string[] values) | |
| Creates a new instance of the projection parameters and assigns its value. More... | |
| ProjectionParams (AnyValueArray array) | |
| Creates a new instance of the projection parameters and assigns its value. More... | |
| override string | ToString () |
| Gets a string representation of the object. The result is a comma-separated list of projection fields "field1,field2.field21,field2.field22.field221" More... | |
Static Public Member Functions | |
| static ProjectionParams | FromValue (object value) |
| Converts specified value into ProjectionParams. More... | |
| static ProjectionParams | FromValues (params string[] values) |
| Parses comma-separated list of projection fields. More... | |
| static ProjectionParams | FromValues (char delimiter, params string[] values) |
| Parses comma-separated list of projection fields. More... | |
Static Private Member Functions | |
| static string [] | Parse (char delimiter, string[] values) |
| static void | ParseValue (string prefix, List< string > result, string value, char delimiter) |
Static Private Attributes | |
| static char | DefaultDelimiter = ',' |
Defines projection parameters with list if fields to include into query results.
The parameters support two formats: dot format and nested format.
The dot format is the standard way to define included fields and subfields using dot object notation: "field1,field2.field21,field2.field22.field221"
As alternative the nested format offers a more compact representation: "field1,field2(field21,field22(field221))"
| PipServices3.Commons.Data.ProjectionParams.ProjectionParams | ( | ) |
Creates a new instance of the projection parameters.
| PipServices3.Commons.Data.ProjectionParams.ProjectionParams | ( | string [] | values | ) |
Creates a new instance of the projection parameters and assigns its value.
| values | (optional) values to initialize this object. |
| PipServices3.Commons.Data.ProjectionParams.ProjectionParams | ( | AnyValueArray | array | ) |
Creates a new instance of the projection parameters and assigns its value.
| values | (optional) values to initialize this object. |
|
static |
Converts specified value into ProjectionParams.
| value | value to be converted |
|
static |
Parses comma-separated list of projection fields.
| values | one or more comma-separated lists of projection fields |
|
static |
Parses comma-separated list of projection fields.
| delimiter | a certain type of delimiter |
| values | one or more comma-separated lists of projection fields |
| override string PipServices3.Commons.Data.ProjectionParams.ToString | ( | ) |
Gets a string representation of the object. The result is a comma-separated list of projection fields "field1,field2.field21,field2.field22.field221"
1.8.13