/// <summary> /// Creates an adapter with the given object cache. /// </summary> /// <param name="site">Site collection object.</param> /// <param name="item">List item.</param> /// <param name="objectCache">Object cache.</param> public DataRowAdapter(SPSite site, DataRow item, SPObjectCache objectCache) : base(objectCache) { CommonHelper.ConfirmNotNull(site, "site"); CommonHelper.ConfirmNotNull(item, "item"); this.parentSite = site; this.instance = item; this.webId = GetGuid("WebId"); this.listId = GetGuid("ListId"); this.listItemId = GetInteger("ID"); }
/// <summary> /// Creates an adapter with the given object cache. /// </summary> /// <param name="properties">An <see cref="SPItemEventProperties"/> object.</param> /// <param name="objectCache">Object cache.</param> public SPItemEventDataCollectionAdapter(SPItemEventProperties properties, SPObjectCache objectCache) : base(objectCache) { CommonHelper.ConfirmNotNull(properties, "properties"); instance = properties; }
/// <summary> /// Creates an adapter with the given object cache. /// </summary> /// <param name="item">Version of a list item.</param> /// <param name="objectCache">Object cache.</param> public SPListItemVersionAdapter(SPListItemVersion item, SPObjectCache objectCache) : base(objectCache) { CommonHelper.ConfirmNotNull(item, "item"); this.instance = item; }
/// <summary> /// Creates an adapter with the given object cache. /// </summary> /// <param name="site">Site collection object.</param> /// <param name="item">List item.</param> /// <param name="objectCache">Object cache.</param> public KeywordQueryResultAdapter(SPSite site, DataRow item, SPObjectCache objectCache) : base(site, item, objectCache) { }
/// <summary> /// Creates an adapter with the given object cache. /// </summary> /// <param name="objectCache">Object cache.</param> public SPListItemAdapterBase(SPObjectCache objectCache) { this.objectCache = objectCache; }