/// <summary>
 /// Order data by $priority. Note that this is used mainly for following filtering queries and due to firebase implementation
 /// the data may actually not be ordered.
 /// </summary>
 /// <param name="child"> The child. </param>
 /// <returns> The <see cref="OrderQuery"/>. </returns>
 public static OrderQuery OrderByPriority(this ChildQuery child)
 {
     return(child.OrderBy("$priority"));
 }
 /// <summary>
 /// Order data by $value. Note that this is used mainly for following filtering queries and due to firebase implementation
 /// the data may actually not be ordered.
 /// </summary>
 /// <param name="child"> The child. </param>
 /// <returns> The <see cref="OrderQuery"/>. </returns>
 public static OrderQuery OrderByValue(this ChildQuery child)
 {
     return(child.OrderBy("$value"));
 }
 /// <summary>
 /// Order data by $key. Note that this is used mainly for following filtering queries and due to firebase implementation
 /// the data may actually not be ordered.
 /// </summary>
 /// <param name="child"> The child. </param>
 /// <returns> The <see cref="OrderQuery"/>. </returns>
 public static OrderQuery OrderByKey(this ChildQuery child)
 {
     return(child.OrderBy("$key"));
 }
 /// <summary>
 /// Order data by given <see cref="propertyNameFactory"/>. Note that this is used mainly for following filtering queries and due to firebase implementation
 /// the data may actually not be ordered.
 /// </summary>
 /// <param name="child"> The child. </param>
 /// <param name="propertyNameFactory"> The property name. </param>
 /// <returns> The <see cref="OrderQuery"/>. </returns>
 public static OrderQuery OrderBy(this ChildQuery child, Func <string> propertyNameFactory)
 {
     return(new OrderQuery(child, propertyNameFactory, child.Client));
 }
 /// <summary>
 /// References a sub child of the existing node.
 /// </summary>
 /// <param name="node"> The child. </param>
 /// <param name="pathFactory"> The path of sub child. </param>
 /// <returns> The <see cref="ChildQuery"/>. </returns>
 public static ChildQuery Child(this ChildQuery node, Func <string> pathFactory)
 {
     return(new ChildQuery(node, pathFactory, node.Client));
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderQuery"/> class.
 /// </summary>
 /// <param name="parent"> The query parent. </param>
 /// <param name="propertyNameFactory"> The property name. </param>
 /// <param name="client"> The owning client. </param>
 public OrderQuery(ChildQuery parent, Func <string> propertyNameFactory, FirebaseClient client)
     : base(parent, () => "orderBy", client)
 {
     this.propertyNameFactory = propertyNameFactory;
 }