示例#1
0
文件: View.cs 项目: rlocus/SPAccess
 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);
 }
示例#2
0
文件: View.cs 项目: rlocus/SPAccess
 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);
     }
 }