Esempio 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);
 }
Esempio 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);
 }
Esempio 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);
 }
Esempio 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()));
 }
Esempio 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);
 }
Esempio 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);
 }
Esempio 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);
 }