FromString() public static method

Creates a QueryField object by parsing a string in the correct format. The format is:

<queryField> => [<source>.]<fieldName>

<source> => [<source>.]<sourceName>

For example: Surname or ContactPerson.Company.Name
public static FromString ( string fieldString ) : QueryField
fieldString string The string in the correct format (see above)
return QueryField
Exemplo n.º 1
0
 private void InitFieldCriteria(string propName, ComparisonOp comparisonOp, object value)
 {
     InitFieldCriteria(QueryField.FromString(propName), comparisonOp, value);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a leaf criteria (meaning it has no children in the tree structure).
 /// </summary>
 /// <param name="propName">The property whose value to check</param>
 /// <param name="comparisonOp">The operator to use to compare the property value to the given value</param>
 /// <param name="value">The value to compare to</param>
 public Criteria(string propName, ComparisonOp comparisonOp, object value)
     : this(QueryField.FromString(propName), comparisonOp, value)
 {
     InitFieldCriteria(propName, comparisonOp, value);
 }