protected XmlDataProviderQuery(object queryTypeCookie)
     : base(queryTypeCookie)
 {
     this._passportTicketType                = EPassportPolicyId.None;
     this._cachePolicy                       = HttpRequestCachePolicy.Default;
     this._keepAlive                         = true;
     this._ignoreNamespacePrefix             = true;
     this._ignoreDuplicateGenerationRequests = true;
     this.Result = XmlDataProviderObjectFactory.CreateObject(this, this.ResultTypeCookie);
 }
 public XmlDataVirtualList(DataProviderQuery owner, object itemTypeCookie)
     : base(true)
 {
     this._owner           = owner;
     this._itemTypeCookie  = itemTypeCookie;
     this._itemConstructor = itemTypeCookie == null ? null : XmlDataProviderObjectFactory.GetConstructor(itemTypeCookie);
     this._currentIndex    = -1;
     this._chunkStartIndex = 0;
     this._encodedSortBy   = null;
     this._sortAscending   = null;
     this._sortBy          = null;
 }
Example #3
0
 public XmlDataProviderObject(DataProviderQuery owner, object resultTypeCookie)
     : base(owner, resultTypeCookie)
 {
     foreach (DataProviderMapping dataProviderMapping in Mappings.Values)
     {
         string propertyTypeName = dataProviderMapping.PropertyTypeName;
         if (!this.IsXmlValueType(propertyTypeName))
         {
             if (propertyTypeName == "List")
             {
                 this.SetProperty(dataProviderMapping.PropertyName, new XmlDataVirtualList(this.Owner, dataProviderMapping.UnderlyingCollectionTypeCookie));
             }
             else
             {
                 this.SetProperty(dataProviderMapping.PropertyName, XmlDataProviderObjectFactory.CreateObject(this.Owner, dataProviderMapping.PropertyTypeCookie));
             }
         }
     }
 }