Ejemplo n.º 1
0
 public View(IEnumerable<string> viewFields, IEnumerable<Join> joins, IEnumerable<CamlProjectedField> projectedFields, uint rowLimit = 0, bool? paged = null)
     : base(ViewTag)
 {
     Query = new Query();
     ViewFields = new ViewFieldsCamlElement(viewFields);
     Joins = new JoinsCamlElement(joins);
     ProjectedFields = new ProjectedFieldsCamlElement(projectedFields);
     RowLimit = new CamlRowLimit(rowLimit, paged);
 }
Ejemplo n.º 2
0
 protected override void OnParsing(XElement existingView)
 {
     var existingQuery = existingView.ElementIgnoreCase(Query.QueryTag);
     if (existingQuery != null)
     {
         Query = new Query(existingQuery);
     }
     var existingRowLimit = existingView.ElementIgnoreCase(CamlRowLimit.RowLimitTag);
     if (existingRowLimit != null)
     {
         RowLimit = new CamlRowLimit(existingRowLimit);
     }
     var existingViewFields = existingView.ElementIgnoreCase(ViewFieldsCamlElement.ViewFieldsTag);
     if (existingViewFields != null)
     {
         ViewFields = new ViewFieldsCamlElement(existingViewFields);
     }
     var existingJoins = existingView.ElementIgnoreCase(JoinsCamlElement.JoinsTag);
     if (existingJoins != null)
     {
         Joins = new JoinsCamlElement(existingJoins);
     }
     var projectedFields = existingView.ElementIgnoreCase(ProjectedFieldsCamlElement.ProjectedFieldsTag);
     if (projectedFields != null)
     {
         ProjectedFields = new ProjectedFieldsCamlElement(projectedFields);
     }
 }