Exemplo n.º 1
0
 /// <summary>
 /// Specify the Entity matching criteria with a Template
 /// </summary>
 /// <param name="template">The filter Template</param>
 public Update <T> Match(Template template)
 {
     filter = template.ToString();
     return(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Specify an update with a Template to modify the Entities (use multiple times if needed)
 /// </summary>
 /// <param name="template">A Template with a single update</param>
 public Update <T> Modify(Template template)
 {
     Modify(template.ToString());
     return(this);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Specify a single array filter using a Template to target nested entities for updates
 /// </summary>
 /// <param name="template"></param>
 public Update <T> WithArrayFilter(Template template)
 {
     WithArrayFilter(template.ToString());
     return(this);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Specify an update pipeline stage using a Template to modify the Entities (use multiple times if needed)
 /// <para>NOTE: pipeline updates and regular updates cannot be used together.</para>
 /// </summary>
 /// <param name="template">A Template object containing a pipeline stage</param>
 public Update <T> WithPipelineStage(Template template)
 {
     return(WithPipelineStage(template.ToString()));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Specify the matching criteria with a template
 /// </summary>
 /// <param name="template">A Template with a find query</param>
 public Distinct <T, TProperty> Match(Template template)
 {
     filter &= template.ToString();
     return(this);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Specify the matching criteria with a Template
 /// </summary>
 /// <param name="template">A Template object</param>
 public Distinct <T, TProperty> MatchExpression(Template template)
 {
     filter &= "{$expr:" + template.ToString() + "}";
     return(this);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Specify the matching criteria with a Template
 /// </summary>
 /// <param name="template">A Template object</param>
 public Update <T> MatchExpression(Template template)
 {
     filter &= "{$expr:" + template.ToString() + "}";
     return(this);
 }